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.
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PKG-INFO +195 -63
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/__init__.py +1 -1
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_ai.py +189 -17
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab.egg-info/PKG-INFO +195 -63
- {pygamlab-1.7.2 → pygamlab-1.7.8}/README.md +194 -62
- {pygamlab-1.7.2 → pygamlab-1.7.8}/pyproject.toml +1 -1
- {pygamlab-1.7.2 → pygamlab-1.7.8}/setup.py +1 -1
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/Constants.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/Converters.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/Data_Analysis.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/Functions.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/__init__.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-decision-tree-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-decision-tree.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-knn-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-linear-regression-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-linear-regression.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-mlp-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-random-forest-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-random-forest.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-svr-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-armchair-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-dt-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-knn-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-linear-regression-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-linear-regression.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-mlp-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-rf-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-svr-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-cte-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-decision-tree-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-decision-tree.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-knn-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-linear-regression-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-linear-regression.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-mlp-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-random-forest-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-random-forest.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-svr-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/Graphene-zigzag-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/__init__.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-lr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-lr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-pipe-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-cte-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-lr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-lr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-pipe-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-poisson-ratio-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-lr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-lr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-pipe-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-porosity-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-lr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-lr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-pipe-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/cu-nanocomposites-young-modulus-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-lr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-lr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-pipe-svc.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/mos2-monolayer-type-svc.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-decision-tree-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-decision-tree.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-knn-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-linear-regression-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-linear-regression.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-mlp-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-random-forest-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-random-forest.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-svr-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/percent-symmetry-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-dt-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-knn-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-linear-regression-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-linear-regression.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-mlp-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-rf-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-svr-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/persurface-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-dt-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-dt.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-knn-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-linear-regression-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-linear-regression.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-mlp-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-rf-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-rf.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-svr-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/pertma-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-decision-tree-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-decision-tree.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-knn-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-knn.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-linear-regression-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-linear-regression.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-mlp-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-mlp.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-random-forest-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-random-forest.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-svr-pipe.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/ai_core/gam_models/phosphorene-svr.gam_ai +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/Aflow.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/COD.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/Jarvis.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/Main_DB.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/Material_projects.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/databases/__init__.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/GAM_Graphene.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/GAM_nano_particles.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/GAM_nanotubes.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/GAM_phosphorene.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/GAM_sillicene.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/GAM_architectures/__init__.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Generators/__init__.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Generators/auto_bulk.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Generators/one_d.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Generators/two_d.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Generators/zero_d.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Primatom/__init__.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Primatom/gam_molecule.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/Primatom/gam_universe.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/__init__.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/gamvis/__init__.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/gamvis/gamvis.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/gamvis/gamvis_engine.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/io/__init__.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/io/checker.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/io/conversions.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/io/export.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab/structures/io/read.py +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab.egg-info/SOURCES.txt +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab.egg-info/dependency_links.txt +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab.egg-info/requires.txt +0 -0
- {pygamlab-1.7.2 → pygamlab-1.7.8}/PyGamLab.egg-info/top_level.txt +0 -0
- {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.
|
|
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
|
-
**
|
|
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
|
|
57
|
-
- **Contributor
|
|
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
|
-
**
|
|
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
|
-
|
|
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)**,
|
|
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
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
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`
|
|
76
|
+
### 🎨 `GAMVis`
|
|
82
77
|
|
|
83
|
-
**
|
|
78
|
+
**Internal visualization engine** for interactive 2D and 3D visualization of molecules, nanostructures, and crystals.
|
|
84
79
|
|
|
85
80
|
**Capabilities:**
|
|
86
|
-
- Real-time 2D
|
|
87
|
-
- Graphical representation of
|
|
88
|
-
- Export
|
|
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
|
-
|
|
87
|
+
### 🤖 `Ai_core`
|
|
95
88
|
|
|
96
|
-
**
|
|
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
|
-
|
|
102
|
+
Provides seamless access to multiple **materials databases**.
|
|
109
103
|
|
|
110
104
|
**Supported Databases:**
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
105
|
+
- Materials Project (MP)
|
|
106
|
+
- AFLOW
|
|
107
|
+
- JARVIS
|
|
108
|
+
- Crystallography Open Database (COD)
|
|
115
109
|
|
|
116
110
|
**Available Data:**
|
|
117
|
-
- Mechanical, electronic,
|
|
111
|
+
- Mechanical, electronic, thermodynamic properties
|
|
118
112
|
- Structural and crystallographic information
|
|
119
|
-
- Chemical composition and symmetry
|
|
113
|
+
- Chemical composition and symmetry
|
|
120
114
|
|
|
121
|
-
A universal
|
|
115
|
+
A universal class **`GAM_Explorer`** unifies data retrieval across databases.
|
|
122
116
|
|
|
123
117
|
---
|
|
124
118
|
|
|
125
119
|
### 📊 `Data_Analysis`
|
|
126
120
|
|
|
127
|
-
|
|
121
|
+
Tools for **data preprocessing, analysis, and visualization**.
|
|
128
122
|
|
|
129
123
|
**Main Features:**
|
|
130
|
-
- Read and preprocess data from files or DataFrames
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
-
|
|
134
|
-
-
|
|
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
|
-
### 🔹 `
|
|
138
|
-
|
|
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
|
-
|
|
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
|
+
|
|
@@ -232,16 +232,12 @@ class Gam_Ai_Workflow:
|
|
|
232
232
|
📊 Classification Report:
|
|
233
233
|
...
|
|
234
234
|
"""
|
|
235
|
-
def __init__(self, model_name, base_dir=
|
|
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
|
|
244
|
-
self.
|
|
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.
|
|
281
|
+
if self.ml_model is None:
|
|
286
282
|
raise ValueError("Model not loaded.")
|
|
287
|
-
return self.
|
|
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.
|
|
312
|
-
self.
|
|
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.
|
|
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.
|
|
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.
|
|
422
|
-
y_pred = self.
|
|
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.
|
|
427
|
-
X_trans = self.
|
|
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
|
|