PyGamLab 1.7.2__tar.gz → 1.7.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. {pygamlab-1.7.2 → pygamlab-1.7.8}/PKG-INFO +195 -63
  2. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/__init__.py +1 -1
  3. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_ai.py +189 -17
  4. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab.egg-info/PKG-INFO +195 -63
  5. {pygamlab-1.7.2 → pygamlab-1.7.8}/README.md +194 -62
  6. {pygamlab-1.7.2 → pygamlab-1.7.8}/pyproject.toml +1 -1
  7. {pygamlab-1.7.2 → pygamlab-1.7.8}/setup.py +1 -1
  8. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/Constants.py +0 -0
  9. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/Converters.py +0 -0
  10. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/Data_Analysis.py +0 -0
  11. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/Functions.py +0 -0
  12. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/__init__.py +0 -0
  13. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-decision-tree-pipe.gam_ai +0 -0
  14. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-decision-tree.gam_ai +0 -0
  15. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-knn-pipe.gam_ai +0 -0
  16. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-knn.gam_ai +0 -0
  17. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-linear-regression-pipe.gam_ai +0 -0
  18. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-linear-regression.gam_ai +0 -0
  19. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-mlp-pipe.gam_ai +0 -0
  20. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-mlp.gam_ai +0 -0
  21. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-random-forest-pipe.gam_ai +0 -0
  22. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-random-forest.gam_ai +0 -0
  23. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-svr-pipe.gam_ai +0 -0
  24. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-svr.gam_ai +0 -0
  25. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-dt-pipe.gam_ai +0 -0
  26. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-dt.gam_ai +0 -0
  27. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-knn-pipe.gam_ai +0 -0
  28. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-knn.gam_ai +0 -0
  29. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-linear-regression-pipe.gam_ai +0 -0
  30. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-linear-regression.gam_ai +0 -0
  31. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-mlp-pipe.gam_ai +0 -0
  32. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-mlp.gam_ai +0 -0
  33. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-rf-pipe.gam_ai +0 -0
  34. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-rf.gam_ai +0 -0
  35. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-svr-pipe.gam_ai +0 -0
  36. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-svr.gam_ai +0 -0
  37. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-decision-tree-pipe.gam_ai +0 -0
  38. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-decision-tree.gam_ai +0 -0
  39. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-knn-pipe.gam_ai +0 -0
  40. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-knn.gam_ai +0 -0
  41. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-linear-regression-pipe.gam_ai +0 -0
  42. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-linear-regression.gam_ai +0 -0
  43. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-mlp-pipe.gam_ai +0 -0
  44. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-mlp.gam_ai +0 -0
  45. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-random-forest-pipe.gam_ai +0 -0
  46. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-random-forest.gam_ai +0 -0
  47. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-svr-pipe.gam_ai +0 -0
  48. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-svr.gam_ai +0 -0
  49. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/__init__.py +0 -0
  50. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-dt.gam_ai +0 -0
  51. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-knn.gam_ai +0 -0
  52. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-lr.gam_ai +0 -0
  53. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-mlp.gam_ai +0 -0
  54. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-dt.gam_ai +0 -0
  55. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-knn.gam_ai +0 -0
  56. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-lr.gam_ai +0 -0
  57. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-mlp.gam_ai +0 -0
  58. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-rf.gam_ai +0 -0
  59. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-svr.gam_ai +0 -0
  60. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-rf.gam_ai +0 -0
  61. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-svr.gam_ai +0 -0
  62. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-dt.gam_ai +0 -0
  63. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-knn.gam_ai +0 -0
  64. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-lr.gam_ai +0 -0
  65. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-mlp.gam_ai +0 -0
  66. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-dt.gam_ai +0 -0
  67. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-knn.gam_ai +0 -0
  68. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-lr.gam_ai +0 -0
  69. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-mlp.gam_ai +0 -0
  70. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-rf.gam_ai +0 -0
  71. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-svr.gam_ai +0 -0
  72. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-rf.gam_ai +0 -0
  73. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-svr.gam_ai +0 -0
  74. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-dt.gam_ai +0 -0
  75. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-knn.gam_ai +0 -0
  76. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-lr.gam_ai +0 -0
  77. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-mlp.gam_ai +0 -0
  78. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-dt.gam_ai +0 -0
  79. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-knn.gam_ai +0 -0
  80. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-lr.gam_ai +0 -0
  81. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-mlp.gam_ai +0 -0
  82. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-rf.gam_ai +0 -0
  83. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-svr.gam_ai +0 -0
  84. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-rf.gam_ai +0 -0
  85. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-svr.gam_ai +0 -0
  86. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-dt.gam_ai +0 -0
  87. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-knn.gam_ai +0 -0
  88. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-lr.gam_ai +0 -0
  89. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-mlp.gam_ai +0 -0
  90. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-dt.gam_ai +0 -0
  91. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-knn.gam_ai +0 -0
  92. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-lr.gam_ai +0 -0
  93. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-mlp.gam_ai +0 -0
  94. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-rf.gam_ai +0 -0
  95. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-svr.gam_ai +0 -0
  96. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-rf.gam_ai +0 -0
  97. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-svr.gam_ai +0 -0
  98. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-dt.gam_ai +0 -0
  99. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-knn.gam_ai +0 -0
  100. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-lr.gam_ai +0 -0
  101. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-mlp.gam_ai +0 -0
  102. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-dt.gam_ai +0 -0
  103. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-knn.gam_ai +0 -0
  104. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-lr.gam_ai +0 -0
  105. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-mlp.gam_ai +0 -0
  106. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-rf.gam_ai +0 -0
  107. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-svc.gam_ai +0 -0
  108. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-rf.gam_ai +0 -0
  109. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-svc.gam_ai +0 -0
  110. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-decision-tree-pipe.gam_ai +0 -0
  111. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-decision-tree.gam_ai +0 -0
  112. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-knn-pipe.gam_ai +0 -0
  113. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-knn.gam_ai +0 -0
  114. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-linear-regression-pipe.gam_ai +0 -0
  115. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-linear-regression.gam_ai +0 -0
  116. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-mlp-pipe.gam_ai +0 -0
  117. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-mlp.gam_ai +0 -0
  118. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-random-forest-pipe.gam_ai +0 -0
  119. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-random-forest.gam_ai +0 -0
  120. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-svr-pipe.gam_ai +0 -0
  121. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-svr.gam_ai +0 -0
  122. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-dt-pipe.gam_ai +0 -0
  123. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-dt.gam_ai +0 -0
  124. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-knn-pipe.gam_ai +0 -0
  125. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-knn.gam_ai +0 -0
  126. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-linear-regression-pipe.gam_ai +0 -0
  127. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-linear-regression.gam_ai +0 -0
  128. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-mlp-pipe.gam_ai +0 -0
  129. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-mlp.gam_ai +0 -0
  130. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-rf-pipe.gam_ai +0 -0
  131. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-rf.gam_ai +0 -0
  132. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-svr-pipe.gam_ai +0 -0
  133. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-svr.gam_ai +0 -0
  134. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-dt-pipe.gam_ai +0 -0
  135. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-dt.gam_ai +0 -0
  136. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-knn-pipe.gam_ai +0 -0
  137. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-knn.gam_ai +0 -0
  138. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-linear-regression-pipe.gam_ai +0 -0
  139. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-linear-regression.gam_ai +0 -0
  140. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-mlp-pipe.gam_ai +0 -0
  141. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-mlp.gam_ai +0 -0
  142. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-rf-pipe.gam_ai +0 -0
  143. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-rf.gam_ai +0 -0
  144. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-svr-pipe.gam_ai +0 -0
  145. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-svr.gam_ai +0 -0
  146. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-decision-tree-pipe.gam_ai +0 -0
  147. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-decision-tree.gam_ai +0 -0
  148. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-knn-pipe.gam_ai +0 -0
  149. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-knn.gam_ai +0 -0
  150. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-linear-regression-pipe.gam_ai +0 -0
  151. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-linear-regression.gam_ai +0 -0
  152. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-mlp-pipe.gam_ai +0 -0
  153. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-mlp.gam_ai +0 -0
  154. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-random-forest-pipe.gam_ai +0 -0
  155. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-random-forest.gam_ai +0 -0
  156. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-svr-pipe.gam_ai +0 -0
  157. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-svr.gam_ai +0 -0
  158. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/Aflow.py +0 -0
  159. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/COD.py +0 -0
  160. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/Jarvis.py +0 -0
  161. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/Main_DB.py +0 -0
  162. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/Material_projects.py +0 -0
  163. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/__init__.py +0 -0
  164. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/GAM_Graphene.py +0 -0
  165. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/GAM_nano_particles.py +0 -0
  166. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/GAM_nanotubes.py +0 -0
  167. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/GAM_phosphorene.py +0 -0
  168. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/GAM_sillicene.py +0 -0
  169. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/__init__.py +0 -0
  170. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Generators/__init__.py +0 -0
  171. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Generators/auto_bulk.py +0 -0
  172. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Generators/one_d.py +0 -0
  173. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Generators/two_d.py +0 -0
  174. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Generators/zero_d.py +0 -0
  175. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Primatom/__init__.py +0 -0
  176. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Primatom/gam_molecule.py +0 -0
  177. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Primatom/gam_universe.py +0 -0
  178. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/__init__.py +0 -0
  179. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/gamvis/__init__.py +0 -0
  180. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/gamvis/gamvis.py +0 -0
  181. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/gamvis/gamvis_engine.py +0 -0
  182. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/io/__init__.py +0 -0
  183. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/io/checker.py +0 -0
  184. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/io/conversions.py +0 -0
  185. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/io/export.py +0 -0
  186. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/io/read.py +0 -0
  187. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab.egg-info/SOURCES.txt +0 -0
  188. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab.egg-info/dependency_links.txt +0 -0
  189. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab.egg-info/requires.txt +0 -0
  190. {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab.egg-info/top_level.txt +0 -0
  191. {pygamlab-1.7.2 → pygamlab-1.7.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyGamLab
3
- Version: 1.7.2
3
+ Version: 1.7.8
4
4
  Summary: A scientific Python library with constants, unit convertors, formulas, and data analysis tools.
5
5
  Home-page: https://github.com/APMaii/pygamlab/tree/main
6
6
  Author: Ali Pilehvar Meibody
@@ -34,117 +34,105 @@ Dynamic: requires-python
34
34
 
35
35
  <h1 align="center">PyGamLab</h1>
36
36
 
37
-
38
37
  <p align="center">
39
38
  <img src="https://github.com/APMaii/pygamlab/blob/main/pics/python_logo_final.png" alt="PyGamLab Logo" width="450"/>
40
39
  </p>
41
40
 
42
-
43
-
44
-
45
- <p align="center"> <i>PyGamLab is a scientific Python library developed for researchers, engineers, and students who need access to powerful tools for nanostructure generation, alloy design, material data exploration, and AI-driven analysis. The package is designed with simplicity, clarity, and usability in mind.</i> </p>
46
-
41
+ <p align="center"><i>PyGamLab is a scientific Python library for researchers, engineers, and students who need powerful tools for nanostructure generation, alloy design, material data exploration, and AI-driven analysis. Designed for simplicity, clarity, and usability.</i></p>
47
42
 
48
43
  ---
49
44
 
50
45
  ## 📌 Overview
51
46
 
52
- **PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab (Graphene and Advanced Material Laboratory)** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at **Amirkabir University of Technology (AUT)**.
47
+ **PyGamLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab (Graphene and Advanced Material Laboratory)** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at **Amirkabir University of Technology (AUT)**.
53
48
 
54
49
  - **Main Author:** Ali Pilehvar Meibody
55
- - **Supervisor:** Prof. Malek Naderi
56
- - **Co Author:** Danial Nekoonam
57
- - **Contributor** Shokoofeh Karimi
58
- - **Affiliation:** GAMLab, Amirkabir University of Technology (AUT)
50
+ - **Supervisor:** Prof. Malek Naderi
51
+ - **Co-Author:** Danial Nekoonam
52
+ - **Contributor:** Shokoofeh Karimi
53
+ - **Affiliation:** GAMLab, Amirkabir University of Technology (AUT)
59
54
 
60
55
  ---
61
56
 
62
57
  ## 📦 Modules
63
58
 
64
- **PyGAMLab** is composed of several core scientific modules, each designed to address a specific domain of materials modeling, nanoscience, and data-driven discovery.
59
+ **PyGamLab** consists of several core modules, each focused on materials modeling, nanoscience, and data-driven discovery.
65
60
 
66
61
  ---
67
62
 
68
63
  ### 🧱 `Structure`
69
64
 
70
- The **Structures** module is the foundation of PyGAMLab, providing advanced tools to **generate, manipulate, and analyze nanoscale and bulk materials**.
65
+ Provides tools to **generate, manipulate, and analyze nanoscale and bulk materials**.
71
66
 
72
67
  **Key Features:**
73
- - Generate **0D (clusters, nanoparticles)**, **1D (nanowires, nanotubes)**, and **2D (nanosheets, thin films)** structures, as well as **bulk crystals**.
68
+ - Generate **0D (clusters, nanoparticles)**, **1D (nanowires, nanotubes)**, **2D (nanosheets, thin films)**, and **bulk crystals**.
74
69
  - Automated builders for **nanoclusters, nanotubes, and supercells**.
75
- - Perform geometric operations such as **rotation, translation, scaling, merging, slicing**, and **symmetry analysis**.
76
- - Comprehensive **I/O support**: read, write, and convert structures in formats like `.cif`, `.xyz`, `.pdb`, `.vasp`, `.json`, and more.
77
- - Direct integration with the **ASE (Atomic Simulation Environment)** via built-in converters.
70
+ - Geometric operations: **rotation, translation, scaling, merging, slicing**, and **symmetry analysis**.
71
+ - Supports formats: `.cif`, `.xyz`, `.pdb`, `.vasp`, `.json`, etc.
72
+ - Integration with **ASE** and **Pymatgen** via built-in converters.
78
73
 
79
74
  ---
80
75
 
81
- ### 🎨 `GAMVis` (GAM Visualizer)
76
+ ### 🎨 `GAMVis`
82
77
 
83
- **GAMVis** is the internal visualization engine of PyGAMLab — an interactive and high-performance visualizer for atomic and molecular structures.
78
+ **Internal visualization engine** for interactive 2D and 3D visualization of molecules, nanostructures, and crystals.
84
79
 
85
80
  **Capabilities:**
86
- - Real-time 2D and 3D visualization of **molecules, nanostructures, and crystal lattices**.
87
- - Graphical representation of **bonds, surfaces, and charge distributions**.
88
- - Export of rendered structures and animations.
89
- - Ideal for publication-quality figures and teaching demonstrations.
81
+ - Real-time 2D/3D visualization
82
+ - Graphical representation of bonds, surfaces, and charge distributions
83
+ - Export publication-quality figures and animations
90
84
 
91
85
  ---
92
- ### 🤖 `Nano_AI`
93
86
 
94
- **Nano_AI** integrates machine learning into materials research, providing tools for **automatic model training**, **fine-tuning**, and **prediction**.
87
+ ### 🤖 `Ai_core`
95
88
 
96
- **Highlights:**
97
- - Automated ML workflows for regression, classification, and clustering.
98
- - Access to over **120 pre-trained machine learning models** trained on nanomaterials datasets.
99
- - Easy fine-tuning and inference on user-provided data.
100
- - Includes property predictors for band gap, formation energy, hardness, and more.
101
- - Built-in tools for data splitting, validation, and model evaluation.
89
+ Integrates **machine learning workflows** into materials research.
102
90
 
91
+ **Highlights:**
92
+ - Automated regression, classification, and clustering workflows
93
+ - Access to 140+ pre-trained models
94
+ - Fine-tuning and inference on user data
95
+ - Predict material properties: band gap, formation energy, hardness
96
+ - Built-in tools for data splitting, validation, and evaluation
103
97
 
104
98
  ---
105
99
 
106
100
  ### 🧬 `databases`
107
101
 
108
- The **databases** module provides seamless access to multiple **materials databases**, allowing users to retrieve both structural and property data from leading open repositories.
102
+ Provides seamless access to multiple **materials databases**.
109
103
 
110
104
  **Supported Databases:**
111
- - **Materials Project (MP)**
112
- - **AFLOW**
113
- - **JARVIS**
114
- - **Crystallography Open Database (COD)**
105
+ - Materials Project (MP)
106
+ - AFLOW
107
+ - JARVIS
108
+ - Crystallography Open Database (COD)
115
109
 
116
110
  **Available Data:**
117
- - Mechanical, electronic, and thermodynamic properties
111
+ - Mechanical, electronic, thermodynamic properties
118
112
  - Structural and crystallographic information
119
- - Chemical composition and symmetry details
113
+ - Chemical composition and symmetry
120
114
 
121
- A universal parent class, **`GAM_Explorer`**, synchronizes and unifies data from all sources, enabling consistent data retrieval and cross-database comparison.
115
+ A universal class **`GAM_Explorer`** unifies data retrieval across databases.
122
116
 
123
117
  ---
124
118
 
125
119
  ### 📊 `Data_Analysis`
126
120
 
127
- The **Data_Analysis** module offers advanced tools for **data preprocessing, analysis, and scientific visualization**.
121
+ Tools for **data preprocessing, analysis, and visualization**.
128
122
 
129
123
  **Main Features:**
130
- - Read and preprocess data from files or DataFrames.
131
- - Perform filtering, normalization, and feature extraction.
132
- - Generate publication-ready graphs (line, scatter, histogram, heatmap, etc.).
133
- - Support for **68+ experimental analysis tools**, including NMR, XPS, XRD, UV-Vis, and Raman spectroscopy.
134
- - Includes scientific constants, unit converters, and mathematical utilities for laboratory and computational work.
124
+ - Read and preprocess data from files or DataFrames
125
+ - Filtering, normalization, and feature extraction
126
+ - Publication-ready plots: line, scatter, histogram, heatmap
127
+ - 68+ experimental analysis tools (NMR, XPS, XRD, UV-Vis, Raman)
128
+ - Scientific constants, unit converters, and utilities
135
129
 
130
+ ---
136
131
 
137
- ### 🔹 ` Constants.py`
138
- This module includes a comprehensive set of scientific constants used in physics, chemistry, and engineering.
132
+ ### 🔹 `Constants.py`
133
+ Includes comprehensive scientific constants in physics, chemistry, and engineering.
139
134
 
140
- Examples:
141
- - Planck's constant
142
- - Boltzmann constant
143
- - Speed of light
144
- - Universal gas constant
145
- - Density of Metals
146
- - Tm of Metals
147
- - And many more...
135
+ Examples: Planck's constant, Boltzmann constant, speed of light, universal gas constant, density and melting points of metals.
148
136
 
149
137
  ---
150
138
 
@@ -221,14 +209,11 @@ git clone https://github.com/APMaii/pygamlab.git
221
209
  import PyGamLab
222
210
 
223
211
 
224
- import PyGamLab.Constants as gamcn
225
- import PyGamLab.Convertos as gamcv
226
- import PyGamLab.Functions as gamfunc
227
- import PyGamLab.Data_Analysis as gamdat
228
212
 
229
213
 
230
214
 
231
215
  #--------------Constants-----------------------
216
+ import PyGamLab.Constants as gamcn
232
217
 
233
218
  print(gamcn.melting_point_of_Cu)
234
219
  print(gamcn.melting_point_of_Al)
@@ -240,6 +225,7 @@ print(gamcn.Faraday_Constant)
240
225
 
241
226
 
242
227
  #----------Converters------------------------
228
+ import PyGamLab.Converters as gamcv
243
229
 
244
230
  print(gamcv.Kelvin_to_Celcius(300)) # Convert 300 K to °C
245
231
  print(gamcv.Coulomb_To_Electron_volt(1)) # Convert 1 Coulomb to eV
@@ -247,6 +233,7 @@ print(gamcv.Angstrom_To_Milimeter(1)) # Convert 1 Å to mm
247
233
  print(gamcv.Bar_To_Pascal(1)) # Convert 1 bar to Pascal
248
234
 
249
235
  #-----------Functions------------------------
236
+ import PyGamLab.Functions as gamfunc
250
237
 
251
238
  # Gibb's Free Energy: G = H0 - T*S0
252
239
  H0 = 100 # Enthalpy in kJ/mol
@@ -266,7 +253,11 @@ sigma0 = 150 # Friction stress in MPa
266
253
  k = 0.5 # Strengthening coefficient in MPa·mm^0.5
267
254
  print(gamfunc.Hall_Petch(d_grain, sigma0, k))
268
255
 
256
+
257
+
258
+
269
259
  #-----------Data_Analysis--------------------
260
+ import PyGamLab.Data_Analysis as gamdat
270
261
  import pandas as pd
271
262
 
272
263
  df= pd.read_csv('/users/apm/....../data.csv')
@@ -278,6 +269,86 @@ data=pd.read_csv('/users/apm/....../data.csv')
278
269
  my_max=gamdat.Xrd_Analysis(data,'max intensity')
279
270
  gamdat.Xrd_Analysis(data,'scatter plot')
280
271
  gamdat.Xrd_Analysis(data,'line graph')
272
+
273
+
274
+
275
+
276
+
277
+
278
+ #-----------Structures--------------------
279
+
280
+ from PyGamLab.structures.Generators import Nano_ZeroD_Builder
281
+
282
+ builder=Nano_ZeroD_Builder(material='Au', crystal_structure='fcc', lattice_constant=2.14)
283
+
284
+ Au_atoms=builder.get_atoms()
285
+
286
+ from PyGamLab.structures.gamvis import Molecular_Visualizer
287
+
288
+ Molecular_Visualizer(Au_atoms,format='gamvis')
289
+
290
+ Molecular_Visualizer(Au_atoms,format='ase')
291
+
292
+ Molecular_Visualizer(Au_atoms,format='matplotlib')
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+ from PyGamLab.structures.GAM_architectures import Nano_ZeroD_Builder
301
+
302
+ builder=Graphene(lattice_constant=2.46, width=10, length=82, edge_type='zigzag' )
303
+
304
+ graphene_atoms=builder.get_atoms()
305
+
306
+ from PyGamLab.structures.gamvis import Molecular_Visualizer
307
+
308
+ Molecular_Visualizer(graphene_atoms,format='gamvis')
309
+
310
+ Molecular_Visualizer(graphene_atoms,format='ase')
311
+
312
+ Molecular_Visualizer(graphene_atoms,format='matplotlib')
313
+
314
+
315
+
316
+
317
+ #-----------databases--------------------
318
+
319
+ from PyGamLab.databases.Main_DB import GAM_Explorer
320
+
321
+
322
+
323
+ explorer=GAM_Explorer(backend='aflow',timeout=60,max_results=5,batch_size=10)
324
+
325
+
326
+ explorer.search_materials(formula='SiO2')
327
+
328
+
329
+ mechanical_properties=explorer.fetch_mechanical_properties()
330
+
331
+
332
+ electronic_properties=explorer.fetch_electronic_properties()
333
+
334
+
335
+ #--------------Ai Core--------------------
336
+ from PyGamLab.ai_core import Gam_Ai_Workflow
337
+
338
+
339
+ workflow=Gam_Ai_Workflow('Graphene-armchair-rf')
340
+
341
+ workflow.summary()
342
+
343
+ workflow.predict(range(0,100))
344
+
345
+
346
+ workflow.evaluate_regressor()
347
+
348
+
349
+
350
+
351
+
281
352
  ```
282
353
 
283
354
  ---
@@ -290,16 +361,76 @@ For detailed documentation, please visit the official [PyGamLab Documentation](h
290
361
 
291
362
  ---
292
363
 
293
- ## Structure
364
+ ## 📁 Project Structure
365
+
366
+ ### 🔹 High-Level Overview
367
+
294
368
  ```
295
369
  pygamlab/
296
- ├── __init__.py
297
370
  ├── Constants.py
298
371
  ├── Convertors.py
299
372
  ├── Functions.py
300
373
  ├── Data_Analysis.py
301
- └── contributers.md
374
+ ├── contributors.md
375
+ ├── structures/
376
+ ├── io/
377
+ ├── databases/
378
+ └── ai_core/
379
+ ```
380
+ ---
302
381
 
382
+ ### 🔍 Detailed Structure
383
+ ```
384
+
385
+ pygamlab/
386
+ ├── init.py
387
+ ├── Constants.py
388
+ ├── Convertors.py
389
+ ├── Functions.py
390
+ ├── Data_Analysis.py
391
+ └── contributors.md
392
+ ├── structures/
393
+ │ ├── Primatom/
394
+ │ │ ├── init.py
395
+ │ │ ├── gam_universe.py
396
+ │ │ └── gam_molecule.py
397
+ │ ├── Generators/
398
+ │ │ ├── init.py
399
+ │ │ ├── zero_d.py
400
+ │ │ ├── one_d.py
401
+ │ │ ├── two_d.py
402
+ │ │ └── auto_bulk.py
403
+ │ ├── GAM_architectures/
404
+ │ │ ├── init.py
405
+ │ │ ├── GAM_Graphene.py
406
+ │ │ ├── GAM_phosphorene.py
407
+ │ │ ├── GAM_sillicene.py
408
+ │ │ ├── GAM_nano_particles.py
409
+ │ │ └── GAM_nanotubes.py
410
+ │ └── gamvis/
411
+ │ ├── init.py
412
+ │ ├── gamvis.py
413
+ │ └── gamvis_engine.py
414
+ ├── io/
415
+ │ ├── init.py
416
+ │ ├── read.py
417
+ │ ├── export.py
418
+ │ ├── checker.py
419
+ │ └── conversions.py
420
+ ├── databases/
421
+ │ ├── init.py
422
+ │ ├── Main_DB.py
423
+ │ ├── COD.py
424
+ │ ├── Material_projects.py
425
+ │ ├── Jarvis.py
426
+ │ └── Aflow.py
427
+ └── ai_core/
428
+ │ ├── init.py
429
+ │ ├── gam_ai.py
430
+ │ └── gam_models/
431
+ │ ├── init.py
432
+ │ ├── files.gam_ai
433
+ │ └── ...
303
434
  ```
304
435
 
305
436
 
@@ -362,3 +493,4 @@ This project was made possible thanks to the powerful Python open-source ecosyst
362
493
 
363
494
 
364
495
 
496
+
@@ -43,7 +43,7 @@ Y88b. 88 Y88..88PP. 888 888 888 888...... Y88..88PP. 888 888
43
43
  '''
44
44
 
45
45
 
46
- __version__ = "1.7.2"
46
+ __version__ = "1.7.8"
47
47
 
48
48
 
49
49
 
@@ -232,16 +232,12 @@ class Gam_Ai_Workflow:
232
232
  📊 Classification Report:
233
233
  ...
234
234
  """
235
- def __init__(self, model_name, base_dir="./gam_models"):
235
+ def __init__(self, model_name, base_dir=None):
236
236
  self.model_name = model_name
237
- self.base_dir = base_dir
238
- self.file_path = os.path.join(base_dir, f"{model_name}.gam_ai")
239
237
 
240
- if not os.path.exists(self.file_path):
241
- raise FileNotFoundError(f"❌ .gam_ai file not found: {self.file_path}")
242
238
 
243
- self.gam = GamAI_io.load(self.file_path)
244
- self.model = self.gam.model
239
+ self.gam=GAM_AI_MODEL(model_name,base_dir=base_dir)
240
+ self.ml_model = self.gam.ml_model
245
241
  self.model_type = self.gam.model_type.lower()
246
242
 
247
243
  print(f"✅ Loaded model '{self.model_name}' ({self.model_type}) successfully.")
@@ -282,9 +278,9 @@ class Gam_Ai_Workflow:
282
278
  ValueError
283
279
  If no model is loaded.
284
280
  """
285
- if self.model is None:
281
+ if self.ml_model is None:
286
282
  raise ValueError("Model not loaded.")
287
- return self.model.predict(X)
283
+ return self.ml_model.predict(X)
288
284
 
289
285
  def refit(self, X, y):
290
286
  """
@@ -308,8 +304,8 @@ class Gam_Ai_Workflow:
308
304
  update the `.gam_ai` file on disk. To persist changes, re-save the model
309
305
  using `GamAI_io.save()` after refitting.
310
306
  """
311
- if hasattr(self.model, "fit"):
312
- self.model.fit(X, y)
307
+ if hasattr(self.ml_model, "fit"):
308
+ self.ml_model.fit(X, y)
313
309
  print("🔁 Model refitted successfully.")
314
310
  else:
315
311
  raise NotImplementedError("This model type cannot be refitted.")
@@ -338,7 +334,7 @@ class Gam_Ai_Workflow:
338
334
  - Confusion matrix plot
339
335
  """
340
336
 
341
- y_pred = self.model.predict(X)
337
+ y_pred = self.ml_model.predict(X)
342
338
  acc = np.mean(y_pred == y_true)
343
339
  print(f"🎯 Accuracy: {acc:.4f}\n")
344
340
  print("📊 Classification Report:\n")
@@ -374,7 +370,7 @@ class Gam_Ai_Workflow:
374
370
  - Mean Squared Error (MSE)
375
371
  - Predicted vs. True value scatter plot
376
372
  """
377
- y_pred = self.model.predict(X)
373
+ y_pred = self.ml_model.predict(X)
378
374
  r2 = r2_score(y_true, y_pred)
379
375
  mae = mean_absolute_error(y_true, y_pred)
380
376
  mse = mean_squared_error(y_true, y_pred)
@@ -418,13 +414,13 @@ class Gam_Ai_Workflow:
418
414
  - This visualization assumes that the first two components or features
419
415
  are suitable for 2D projection.
420
416
  """
421
- if hasattr(self.model, "predict"):
422
- y_pred = self.model.predict(X)
417
+ if hasattr(self.ml_model, "predict"):
418
+ y_pred = self.ml_model.predict(X)
423
419
  plt.scatter(X[:, 0], X[:, 1], c=y_pred, cmap="viridis", s=30)
424
420
  plt.title(f"Cluster Visualization — {self.gam.model_name}")
425
421
  plt.show()
426
- elif hasattr(self.model, "transform"):
427
- X_trans = self.model.transform(X)
422
+ elif hasattr(self.ml_model, "transform"):
423
+ X_trans = self.ml_model.transform(X)
428
424
  plt.scatter(X_trans[:, 0], X_trans[:, 1], s=30)
429
425
  plt.title(f"Feature Space — {self.gam.model_name}")
430
426
  plt.show()
@@ -470,6 +466,47 @@ class Gam_Ai_Workflow:
470
466
  self.visualize_unsupervised(X)
471
467
  else:
472
468
  raise ValueError(f"Unknown model_type: {self.model_type}")
469
+
470
+
471
+
472
+ def get_GAM_AI_MODEL(self):
473
+ """
474
+ Retrieve the fully loaded `.gam_ai` model instance associated with this workflow.
475
+
476
+ Returns
477
+ -------
478
+ GAM_AI_MODEL
479
+ The `GAM_AI_MODEL` object currently managed by this workflow instance.
480
+ This object encapsulates both the model’s metadata (e.g., author info,
481
+ training details, performance metrics) and the deserialized scikit-learn model
482
+ accessible via the attribute `ml_model`.
483
+
484
+ Examples
485
+ --------
486
+ >>> workflow = Gam_Ai_Workflow("cu-nanocomposites-poisson-ratio-lr")
487
+ ✅ Loaded model 'cu-nanocomposites-poisson-ratio-lr' (train/test) successfully.
488
+
489
+ >>> gam_model = workflow.get_GAM_AI_MODEL()
490
+ >>> type(gam_model)
491
+ <class 'PyGamLab.ai_core.gam_ai.GAM_AI_MODEL'>
492
+
493
+ >>> gam_model.summary()
494
+ 📘 MODEL METADATA SUMMARY
495
+ model_name: cu-nanocomposites-poisson-ratio-lr
496
+ author_name: Shaoyu Zhao, Yingyan Zhang, Yihe Zhang et al.
497
+ best_accuracy: {'MAE': 0.0541, 'MSE': 0.0042, 'R2': 0.39}
498
+ ⚙️ ML Model: <class 'sklearn.linear_model._base.LinearRegression'>
499
+
500
+ Notes
501
+ -----
502
+ This method serves as a safe accessor for the underlying `GAM_AI_MODEL` instance
503
+ (`self.gam`) loaded during `Gam_Ai_Workflow` initialization.
504
+ It can be used to directly inspect model metadata, retrieve the raw ML model,
505
+ or perform low-level analysis without invoking higher-level workflow methods.
506
+ """
507
+ return self.gam
508
+
509
+
473
510
 
474
511
 
475
512
 
@@ -479,6 +516,141 @@ class Gam_Ai_Workflow:
479
516
 
480
517
 
481
518
 
519
+ import os, json, io, base64, joblib
520
+
521
+ class GAM_AI_MODEL:
522
+ """
523
+ A unified data structure for loading and representing `.gam_ai` model packages.
524
+
525
+ The `.gam_ai` format encapsulates both the machine learning model (serialized
526
+ via `joblib` and encoded in Base64) and its accompanying metadata.
527
+ This class provides a standardized interface for deserializing, inspecting,
528
+ and utilizing such packaged models within the PyGamLab AI ecosystem.
529
+
530
+ The class dynamically attaches metadata fields (e.g., `author_name`,
531
+ `model_type`, `best_accuracy`, etc.) as instance attributes and exposes
532
+ the trained ML model under the attribute `ml_model`.
533
+
534
+ Parameters
535
+ ----------
536
+ model_name : str
537
+ The name of the model file (without the `.gam_ai` extension) to be loaded.
538
+
539
+ base_dir : str, optional
540
+ The base directory containing `.gam_ai` model files. If not provided,
541
+ the class automatically defaults to the `gam_models` directory located
542
+ alongside this module file.
543
+
544
+ Attributes
545
+ ----------
546
+ model_name : str
547
+ The identifier of the loaded `.gam_ai` model.
548
+
549
+ file_path : str
550
+ Full path to the `.gam_ai` file on disk.
551
+
552
+ ml_model : object
553
+ The deserialized scikit-learn model instance (e.g., LinearRegression, RandomForestRegressor, etc.).
554
+
555
+ <dynamic_metadata_fields> : Any
556
+ All key-value pairs from the `"metadata"` section of the `.gam_ai` file are
557
+ dynamically added as attributes (e.g., `author_name`, `description`, `best_accuracy`, etc.).
558
+
559
+ Raises
560
+ ------
561
+ FileNotFoundError
562
+ If the specified `.gam_ai` file cannot be found at the resolved `file_path`.
563
+
564
+ Examples
565
+ --------
566
+ >>> from PyGamLab.ai_core.gam_ai import GAM_AI_MODEL
567
+ >>> model = GAM_AI_MODEL("cu-nanocomposites-poisson-ratio-lr")
568
+ ✅ Loaded GAM_AI_MODEL: 'cu-nanocomposites-poisson-ratio-lr'
569
+
570
+ >>> model.summary()
571
+ 📘 MODEL METADATA SUMMARY
572
+ model_name: cu-nanocomposites-poisson-ratio-lr
573
+ model_type: train/test
574
+ author_name: Shaoyu Zhao, Yingyan Zhang, Yihe Zhang et al.
575
+ best_accuracy: {'MAE': 0.0541, 'MSE': 0.0042, ...}
576
+ ⚙️ ML Model: <class 'sklearn.linear_model._base.LinearRegression'>
577
+
578
+ Notes
579
+ -----
580
+ - The `.gam_ai` file format is designed to preserve reproducibility of ML experiments.
581
+ - Metadata is stored in JSON format, while the ML model itself is serialized using `joblib`
582
+ and encoded with Base64 for portability.
583
+ - This class does not train or evaluate models; it only loads and interprets
584
+ pre-trained model artifacts.
585
+
586
+ See Also
587
+ --------
588
+ Gam_Ai_Workflow : High-level workflow manager that builds upon this class to
589
+ provide evaluation, visualization, and retraining utilities.
590
+ """
591
+
592
+ def __init__(self, model_name, base_dir=None):
593
+ self.model_name = model_name
594
+
595
+ # Default directory if none provided
596
+ if base_dir is None:
597
+ base_dir = os.path.join(os.path.dirname(__file__), "gam_models")
598
+
599
+ self.file_path = os.path.join(base_dir, f"{model_name}.gam_ai")
600
+
601
+ if not os.path.exists(self.file_path):
602
+ raise FileNotFoundError(f"❌ File not found: {self.file_path}")
603
+
604
+ # --- Load JSON file ---
605
+ with open(self.file_path, "r") as f:
606
+ data = json.load(f)
607
+
608
+ metadata = data.get("metadata", {})
609
+ model_data = data.get("model_data", None)
610
+
611
+ # --- Assign metadata attributes dynamically ---
612
+ for key, value in metadata.items():
613
+ setattr(self, key, value)
614
+
615
+ # --- Decode Base64 model ---
616
+ if model_data:
617
+ model_bytes = base64.b64decode(model_data)
618
+ buffer = io.BytesIO(model_bytes)
619
+ self.ml_model = joblib.load(buffer)
620
+ else:
621
+ self.ml_model = None
622
+
623
+ print(f"✅ Loaded GAM_AI_MODEL: '{self.model_name}'")
624
+
625
+ def summary(self):
626
+ """
627
+ Print a structured overview of all model metadata.
628
+
629
+ This method displays the dynamically loaded metadata attributes
630
+ (e.g., author information, accuracy metrics, DOI, etc.) and the
631
+ associated machine learning model type.
632
+
633
+ Examples
634
+ --------
635
+ >>> model.summary()
636
+ 📘 MODEL METADATA SUMMARY
637
+ model_name: cu-nanocomposites-poisson-ratio-lr
638
+ model_type: train/test
639
+ author_name: Shaoyu Zhao
640
+ best_accuracy: {'MAE': 0.054, 'MSE': 0.0042}
641
+ ⚙️ ML Model: <class 'sklearn.linear_model._base.LinearRegression'>
642
+ """
643
+
644
+ print("\n📘 MODEL METADATA SUMMARY\n")
645
+ for k, v in self.__dict__.items():
646
+ if k not in ("ml_model", "file_path"):
647
+ print(f"{k}: {v}")
648
+ print("\n⚙️ ML Model:", type(self.ml_model))
649
+
650
+
651
+
652
+
653
+
482
654
 
483
655
 
484
656