PyGamLab 1.7.5__py3-none-any.whl → 1.8.0__py3-none-any.whl
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/Constants.py +0 -48
- PyGamLab/Converters.py +0 -52
- PyGamLab/Data_Analysis.py +0 -50
- PyGamLab/Functions.py +0 -47
- PyGamLab/__init__.py +1 -1
- PyGamLab/ai_core/gam_ai.py +362 -194
- {pygamlab-1.7.5.dist-info → pygamlab-1.8.0.dist-info}/METADATA +1 -1
- {pygamlab-1.7.5.dist-info → pygamlab-1.8.0.dist-info}/RECORD +10 -10
- {pygamlab-1.7.5.dist-info → pygamlab-1.8.0.dist-info}/WHEEL +0 -0
- {pygamlab-1.7.5.dist-info → pygamlab-1.8.0.dist-info}/top_level.txt +0 -0
PyGamLab/Constants.py
CHANGED
|
@@ -1,51 +1,3 @@
|
|
|
1
|
-
'''
|
|
2
|
-
Constants.py ==>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
This module contains scientific constants intended for use throughout the package.
|
|
6
|
-
'''
|
|
7
|
-
|
|
8
|
-
#" IN GOD WE TRUST, ALL OTHERS MUST BRING DATA"
|
|
9
|
-
# -W. Edwards Deming
|
|
10
|
-
#------------------------------------------------------------------------------
|
|
11
|
-
# Copyright 2023 The Gamlab Authors. All Rights Reserved.
|
|
12
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
# you may not use this file except in compliance with the License.
|
|
14
|
-
# You may obtain a copy of the License at
|
|
15
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
# See the License for the specific language governing permissions and
|
|
20
|
-
# limitations under the License.
|
|
21
|
-
#------------------------------------------------------------------------------
|
|
22
|
-
'''
|
|
23
|
-
The Scientific experimental simulation library
|
|
24
|
-
-------------------------------------------------------------------------------
|
|
25
|
-
Graphen & Advanced Material Laboratory
|
|
26
|
-
|
|
27
|
-
it aimes to provide new scientist to use data,simlation, prepared data
|
|
28
|
-
and Artificial intelligence models.
|
|
29
|
-
|
|
30
|
-
See http://gamlab.aut.ac.ir for complete documentation.
|
|
31
|
-
'''
|
|
32
|
-
__doc__='''
|
|
33
|
-
|
|
34
|
-
@author: Ali Pilehvar Meibody (Alipilehvar1999@gmail.com)
|
|
35
|
-
|
|
36
|
-
888 888
|
|
37
|
-
.d8888b .d88b. 88888b.d88b. 888 .d88b. 888
|
|
38
|
-
d88P" d88""88b 888 "888 "88b 888 d88""88b 88888PP
|
|
39
|
-
888 8888 888 888 888 888 888 888 888 888 888 888
|
|
40
|
-
Y88b. 88 Y88..88PP. 888 888 888 888...... Y88..88PP. 888 888
|
|
41
|
-
"Y8888P8 "Y88P8888 888 888 888 888888888 "Y88P8888 88888888
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
@Director of Gamlab: Professor M. Naderi (Mnaderi@aut.ac.ir)
|
|
45
|
-
|
|
46
|
-
@Graphene Advanced Material Laboratory: https://www.GamLab.Aut.ac.ir
|
|
47
|
-
|
|
48
|
-
'''
|
|
49
1
|
import math
|
|
50
2
|
|
|
51
3
|
# ==============================================================================
|
PyGamLab/Converters.py
CHANGED
|
@@ -1,55 +1,3 @@
|
|
|
1
|
-
'''
|
|
2
|
-
Converters.py :
|
|
3
|
-
|
|
4
|
-
This module provides converter functions for transforming values between different units of measurement.
|
|
5
|
-
'''
|
|
6
|
-
|
|
7
|
-
#" IN GOD WE TRUST, ALL OTHERS MUST BRING DATA"
|
|
8
|
-
# -W. Edwards Deming
|
|
9
|
-
#------------------------------------------------------------------------------
|
|
10
|
-
# Copyright 2023 The Gamlab Authors. All Rights Reserved.
|
|
11
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
# you may not use this file except in compliance with the License.
|
|
13
|
-
# You may obtain a copy of the License at
|
|
14
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
16
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
-
# See the License for the specific language governing permissions and
|
|
19
|
-
# limitations under the License.
|
|
20
|
-
#------------------------------------------------------------------------------
|
|
21
|
-
|
|
22
|
-
'''
|
|
23
|
-
The Scientific experimental simulation library
|
|
24
|
-
-------------------------------------------------------------------------------
|
|
25
|
-
Graphen & Advanced Material Laboratory
|
|
26
|
-
|
|
27
|
-
it aimes to provide new scientist to use data,simlation, prepared data
|
|
28
|
-
and Artificial intelligence models.
|
|
29
|
-
|
|
30
|
-
See http://gamlab.aut.ac.ir for complete documentation.
|
|
31
|
-
'''
|
|
32
|
-
__doc__='''
|
|
33
|
-
|
|
34
|
-
@author: Ali Pilehvar Meibody (Alipilehvar1999@gmail.com)
|
|
35
|
-
|
|
36
|
-
888 888
|
|
37
|
-
.d8888b .d88b. 88888b.d88b. 888 .d88b. 888
|
|
38
|
-
d88P" d88""88b 888 "888 "88b 888 d88""88b 88888PP
|
|
39
|
-
888 8888 888 888 888 888 888 888 888 888 888 888
|
|
40
|
-
Y88b. 88 Y88..88PP. 888 888 888 888...... Y88..88PP. 888 888
|
|
41
|
-
"Y8888P8 "Y88P8888 888 888 888 888888888 "Y88P8888 88888888
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
@Director of Gamlab: Professor M. Naderi (Mnaderi@aut.ac.ir)
|
|
45
|
-
|
|
46
|
-
@Graphene Advanced Material Laboratory: https://www.GamLab.Aut.ac.ir
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@Co-authors:
|
|
50
|
-
'''
|
|
51
|
-
|
|
52
|
-
|
|
53
1
|
|
|
54
2
|
import math
|
|
55
3
|
|
PyGamLab/Data_Analysis.py
CHANGED
|
@@ -1,53 +1,3 @@
|
|
|
1
|
-
'''
|
|
2
|
-
Data_Analysis.py :
|
|
3
|
-
|
|
4
|
-
'''
|
|
5
|
-
|
|
6
|
-
#" IN GOD WE TRUST, ALL OTHERS MUST BRING DATA"
|
|
7
|
-
# -W. Edwards Deming
|
|
8
|
-
#------------------------------------------------------------------------------
|
|
9
|
-
# Copyright 2023 The Gamlab Authors. All Rights Reserved.
|
|
10
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
# you may not use this file except in compliance with the License.
|
|
12
|
-
# You may obtain a copy of the License at
|
|
13
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
# See the License for the specific language governing permissions and
|
|
18
|
-
# limitations under the License.
|
|
19
|
-
#------------------------------------------------------------------------------
|
|
20
|
-
'''
|
|
21
|
-
The Scientific experimental simulation library
|
|
22
|
-
-------------------------------------------------------------------------------
|
|
23
|
-
Graphen & Advanced Material Laboratory
|
|
24
|
-
|
|
25
|
-
it aimes to provide new scientist to use data,simlation, prepared data
|
|
26
|
-
and Artificial intelligence models.
|
|
27
|
-
|
|
28
|
-
See http://gamlab.aut.ac.ir for complete documentation.
|
|
29
|
-
'''
|
|
30
|
-
__doc__='''
|
|
31
|
-
|
|
32
|
-
@author: Ali Pilehvar Meibody (Alipilehvar1999@gmail.com)
|
|
33
|
-
|
|
34
|
-
888 888
|
|
35
|
-
.d8888b .d88b. 88888b.d88b. 888 .d88b. 888
|
|
36
|
-
d88P" d88""88b 888 "888 "88b 888 d88""88b 88888PP
|
|
37
|
-
888 8888 888 888 888 888 888 888 888 888 888 888
|
|
38
|
-
Y88b. 88 Y88..88PP. 888 888 888 888...... Y88..88PP. 888 888
|
|
39
|
-
"Y8888P8 "Y88P8888 888 888 888 888888888 "Y88P8888 88888888
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
@Director of Gamlab: Professor M. Naderi (Mnaderi@aut.ac.ir)
|
|
43
|
-
|
|
44
|
-
@Graphene Advanced Material Laboratory: https://www.GamLab.Aut.ac.ir
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
@Co-authors:
|
|
48
|
-
'''
|
|
49
|
-
|
|
50
|
-
|
|
51
1
|
#import-----------------------------------------
|
|
52
2
|
import math
|
|
53
3
|
import statistics
|
PyGamLab/Functions.py
CHANGED
|
@@ -1,50 +1,3 @@
|
|
|
1
|
-
'''
|
|
2
|
-
Functions.py ==>
|
|
3
|
-
'''
|
|
4
|
-
|
|
5
|
-
#" IN GOD WE TRUST, ALL OTHERS MUST BRING DATA"
|
|
6
|
-
# -W. Edwards Deming
|
|
7
|
-
#------------------------------------------------------------------------------
|
|
8
|
-
# Copyright 2023 The Gamlab Authors. All Rights Reserved.
|
|
9
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
# you may not use this file except in compliance with the License.
|
|
11
|
-
# You may obtain a copy of the License at
|
|
12
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
# See the License for the specific language governing permissions and
|
|
17
|
-
# limitations under the License.
|
|
18
|
-
#------------------------------------------------------------------------------
|
|
19
|
-
'''
|
|
20
|
-
The Scientific experimental simulation library
|
|
21
|
-
-------------------------------------------------------------------------------
|
|
22
|
-
Graphen & Advanced Material Laboratory
|
|
23
|
-
|
|
24
|
-
it aimes to provide new scientist to use data,simlation, prepared data
|
|
25
|
-
and Artificial intelligence models.
|
|
26
|
-
|
|
27
|
-
See http://gamlab.aut.ac.ir for complete documentation.
|
|
28
|
-
'''
|
|
29
|
-
__doc__='''
|
|
30
|
-
|
|
31
|
-
@author: Ali Pilehvar Meibody (Alipilehvar1999@gmail.com)
|
|
32
|
-
|
|
33
|
-
888 888
|
|
34
|
-
.d8888b .d88b. 88888b.d88b. 888 .d88b. 888
|
|
35
|
-
d88P" d88""88b 888 "888 "88b 888 d88""88b 88888PP
|
|
36
|
-
888 8888 888 888 888 888 888 888 888 888 888 888
|
|
37
|
-
Y88b. 88 Y88..88PP. 888 888 888 888...... Y88..88PP. 888 888
|
|
38
|
-
"Y8888P8 "Y88P8888 888 888 888 888888888 "Y88P8888 88888888
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
@Director of Gamlab: Professor M. Naderi (Mnaderi@aut.ac.ir)
|
|
42
|
-
|
|
43
|
-
@Graphene Advanced Material Laboratory: https://www.GamLab.Aut.ac.ir
|
|
44
|
-
|
|
45
|
-
'''
|
|
46
|
-
|
|
47
|
-
|
|
48
1
|
#import-----------------------------------------
|
|
49
2
|
import math
|
|
50
3
|
import statistics
|
PyGamLab/__init__.py
CHANGED
PyGamLab/ai_core/gam_ai.py
CHANGED
|
@@ -7,180 +7,7 @@ from sklearn.metrics import (
|
|
|
7
7
|
classification_report, r2_score, mean_absolute_error, mean_squared_error
|
|
8
8
|
)
|
|
9
9
|
|
|
10
|
-
class GamAI_io:
|
|
11
|
-
"""
|
|
12
|
-
A unified input/output handler for saving and loading `.gam_ai` model packages.
|
|
13
|
-
|
|
14
|
-
This class encapsulates both machine learning model serialization and
|
|
15
|
-
relevant metadata (e.g., author info, model parameters, training details)
|
|
16
|
-
into a single portable `.gam_ai` file. It enables seamless model deployment,
|
|
17
|
-
archival, and reproducibility by combining the binary model object and
|
|
18
|
-
human-readable metadata in one structured JSON container.
|
|
19
10
|
|
|
20
|
-
Parameters
|
|
21
|
-
----------
|
|
22
|
-
model_name : str, optional
|
|
23
|
-
A short, descriptive name for the model. Used as the filename during saving.
|
|
24
|
-
model_type : str, optional
|
|
25
|
-
The algorithmic or architectural family of the model
|
|
26
|
-
(e.g., "RandomForest", "XGBoost", "CNN", "Transformer").
|
|
27
|
-
description : str, optional, default=""
|
|
28
|
-
A brief summary describing the model’s purpose, training dataset,
|
|
29
|
-
or key features.
|
|
30
|
-
author_name : str, optional, default=""
|
|
31
|
-
Full name of the model creator.
|
|
32
|
-
author_email : str, optional, default=""
|
|
33
|
-
Contact email for correspondence or citation.
|
|
34
|
-
trainer_name : str, optional, default=""
|
|
35
|
-
The individual or system responsible for model training.
|
|
36
|
-
best_accuracy : float, optional
|
|
37
|
-
The highest validation or test accuracy achieved during training.
|
|
38
|
-
doi : str, optional
|
|
39
|
-
Digital Object Identifier (DOI) associated with the published model or dataset.
|
|
40
|
-
hyperparam_range : dict, optional, default={}
|
|
41
|
-
Dictionary defining hyperparameter search ranges used during optimization.
|
|
42
|
-
best_params : dict, optional, default={}
|
|
43
|
-
Dictionary of the final optimized hyperparameter values.
|
|
44
|
-
ml_model : object, optional
|
|
45
|
-
The trained machine learning model instance (e.g., scikit-learn estimator).
|
|
46
|
-
|
|
47
|
-
Notes
|
|
48
|
-
-----
|
|
49
|
-
The `.gam_ai` file format consists of a JSON object with two main sections:
|
|
50
|
-
|
|
51
|
-
- **metadata**: Contains descriptive fields such as author, model type,
|
|
52
|
-
and hyperparameters.
|
|
53
|
-
- **model_data**: Contains the Base64-encoded binary serialization of the
|
|
54
|
-
trained model, produced via `joblib`.
|
|
55
|
-
|
|
56
|
-
This approach ensures full portability and JSON readability, enabling
|
|
57
|
-
both programmatic and manual inspection of model metadata.
|
|
58
|
-
|
|
59
|
-
Examples
|
|
60
|
-
--------
|
|
61
|
-
>>> from gamai_io import GamAI_io
|
|
62
|
-
>>> from sklearn.ensemble import RandomForestClassifier
|
|
63
|
-
>>> model = RandomForestClassifier(n_estimators=100, random_state=42)
|
|
64
|
-
>>> model.fit(X_train, y_train)
|
|
65
|
-
>>>
|
|
66
|
-
>>> package = GamAI_io(
|
|
67
|
-
... model_name="rf_classifier_v1",
|
|
68
|
-
... model_type="RandomForest",
|
|
69
|
-
... description="Predicts material phases using compositional data",
|
|
70
|
-
... author_name="John Doe",
|
|
71
|
-
... author_email="john.doe@example.com",
|
|
72
|
-
... best_accuracy=0.94,
|
|
73
|
-
... hyperparam_range={"n_estimators": [50, 100, 200]},
|
|
74
|
-
... best_params={"n_estimators": 100, "max_depth": 10},
|
|
75
|
-
... ml_model=model
|
|
76
|
-
... )
|
|
77
|
-
>>>
|
|
78
|
-
>>> # Save to file
|
|
79
|
-
>>> package.save(save_dir="models")
|
|
80
|
-
💾 Saved ml_model package: models/rf_classifier_v1.gam_ai
|
|
81
|
-
>>>
|
|
82
|
-
>>> # Load from file
|
|
83
|
-
>>> loaded_package = GamAI_io.load("models/rf_classifier_v1.gam_ai")
|
|
84
|
-
>>> restored_model = loaded_package.ml_model
|
|
85
|
-
>>> restored_model.predict(X_test[:5])
|
|
86
|
-
|
|
87
|
-
See Also
|
|
88
|
-
--------
|
|
89
|
-
joblib.dump : Efficient serialization of Python objects.
|
|
90
|
-
json : Standard JSON encoder/decoder.
|
|
91
|
-
base64 : Encoding binary model data for safe JSON storage.
|
|
92
|
-
|
|
93
|
-
"""
|
|
94
|
-
|
|
95
|
-
def __init__(self, **kwargs):
|
|
96
|
-
self.model_name = kwargs.get("model_name")
|
|
97
|
-
self.model_type = kwargs.get("model_type")
|
|
98
|
-
self.description = kwargs.get("description", "")
|
|
99
|
-
self.author_name = kwargs.get("author_name", "")
|
|
100
|
-
self.author_email = kwargs.get("author_email", "")
|
|
101
|
-
self.trainer_name = kwargs.get("trainer_name", "")
|
|
102
|
-
self.best_accuracy = kwargs.get("best_accuracy", None)
|
|
103
|
-
self.doi=kwargs.get("doi", None)
|
|
104
|
-
self.hyperparam_range = kwargs.get("hyperparam_range", {})
|
|
105
|
-
self.best_params = kwargs.get("best_params", {})
|
|
106
|
-
self.ml_model = kwargs.get("ml_model", None)
|
|
107
|
-
|
|
108
|
-
# ----------- Save ----------
|
|
109
|
-
def save(self, save_dir="models"):
|
|
110
|
-
"""
|
|
111
|
-
Serialize and save the current model and metadata as a `.gam_ai` package.
|
|
112
|
-
|
|
113
|
-
Parameters
|
|
114
|
-
----------
|
|
115
|
-
save_dir : str, optional, default="models"
|
|
116
|
-
The target directory to save the `.gam_ai` file.
|
|
117
|
-
The directory will be created if it does not exist.
|
|
118
|
-
|
|
119
|
-
Raises
|
|
120
|
-
------
|
|
121
|
-
ValueError
|
|
122
|
-
If no model (`ml_model`) is attached to the current instance.
|
|
123
|
-
|
|
124
|
-
Notes
|
|
125
|
-
-----
|
|
126
|
-
The model is serialized via `joblib` and encoded with Base64 to
|
|
127
|
-
ensure JSON compatibility. The resulting file can be safely shared
|
|
128
|
-
or uploaded to repositories without binary corruption.
|
|
129
|
-
|
|
130
|
-
"""
|
|
131
|
-
os.makedirs(save_dir, exist_ok=True)
|
|
132
|
-
filename = f"{self.model_name}.gam_ai"
|
|
133
|
-
filepath = os.path.join(save_dir, filename)
|
|
134
|
-
|
|
135
|
-
if self.ml_model is None:
|
|
136
|
-
raise ValueError("No ml_model attached to save inside .gam_ai.")
|
|
137
|
-
|
|
138
|
-
buffer = io.BytesIO()
|
|
139
|
-
joblib.dump(self.ml_model, buffer)
|
|
140
|
-
buffer.seek(0)
|
|
141
|
-
encoded_model = base64.b64encode(buffer.read()).decode("utf-8")
|
|
142
|
-
|
|
143
|
-
data = {
|
|
144
|
-
"metadata": {k: v for k, v in self.__dict__.items() if k != "ml_model"},
|
|
145
|
-
"model_data": encoded_model
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
with open(filepath, "w") as f:
|
|
149
|
-
json.dump(data, f, indent=4)
|
|
150
|
-
print(f"💾 Saved ml_model package: {filepath}")
|
|
151
|
-
|
|
152
|
-
# ----------- Load ----------
|
|
153
|
-
@staticmethod
|
|
154
|
-
def load(filepath):
|
|
155
|
-
"""
|
|
156
|
-
Load a `.gam_ai` model package from disk.
|
|
157
|
-
|
|
158
|
-
Parameters
|
|
159
|
-
----------
|
|
160
|
-
filepath : str
|
|
161
|
-
Full path to the `.gam_ai` file to be loaded.
|
|
162
|
-
|
|
163
|
-
Returns
|
|
164
|
-
-------
|
|
165
|
-
GamAI_io
|
|
166
|
-
A `GamAI_io` instance containing both metadata and the
|
|
167
|
-
deserialized machine learning model (`ml_model`).
|
|
168
|
-
|
|
169
|
-
Notes
|
|
170
|
-
-----
|
|
171
|
-
The loading process reverses the Base64 encoding and `joblib`
|
|
172
|
-
serialization to reconstruct the original model object.
|
|
173
|
-
|
|
174
|
-
"""
|
|
175
|
-
with open(filepath, "r") as f:
|
|
176
|
-
data = json.load(f)
|
|
177
|
-
metadata = data["metadata"]
|
|
178
|
-
model_data = base64.b64decode(data["model_data"])
|
|
179
|
-
buffer = io.BytesIO(model_data)
|
|
180
|
-
model = joblib.load(buffer)
|
|
181
|
-
return GamAI_io(**metadata, model=model)
|
|
182
|
-
|
|
183
|
-
|
|
184
11
|
|
|
185
12
|
|
|
186
13
|
class Gam_Ai_Workflow:
|
|
@@ -234,19 +61,10 @@ class Gam_Ai_Workflow:
|
|
|
234
61
|
"""
|
|
235
62
|
def __init__(self, model_name, base_dir=None):
|
|
236
63
|
self.model_name = model_name
|
|
237
|
-
# If no base_dir is passed, use the directory of this script
|
|
238
|
-
if base_dir is None:
|
|
239
|
-
base_dir = os.path.join(os.path.dirname(__file__), "gam_models")
|
|
240
|
-
|
|
241
64
|
|
|
242
|
-
self.base_dir = base_dir
|
|
243
|
-
self.file_path = os.path.join(base_dir, f"{model_name}.gam_ai")
|
|
244
65
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
self.gam = GamAI_io.load(self.file_path)
|
|
249
|
-
self.model = self.gam.model
|
|
66
|
+
self.gam=GAM_AI_MODEL(model_name,base_dir=base_dir)
|
|
67
|
+
self.ml_model = self.gam.ml_model
|
|
250
68
|
self.model_type = self.gam.model_type.lower()
|
|
251
69
|
|
|
252
70
|
print(f"✅ Loaded model '{self.model_name}' ({self.model_type}) successfully.")
|
|
@@ -287,9 +105,9 @@ class Gam_Ai_Workflow:
|
|
|
287
105
|
ValueError
|
|
288
106
|
If no model is loaded.
|
|
289
107
|
"""
|
|
290
|
-
if self.
|
|
108
|
+
if self.ml_model is None:
|
|
291
109
|
raise ValueError("Model not loaded.")
|
|
292
|
-
return self.
|
|
110
|
+
return self.ml_model.predict(X)
|
|
293
111
|
|
|
294
112
|
def refit(self, X, y):
|
|
295
113
|
"""
|
|
@@ -313,8 +131,8 @@ class Gam_Ai_Workflow:
|
|
|
313
131
|
update the `.gam_ai` file on disk. To persist changes, re-save the model
|
|
314
132
|
using `GamAI_io.save()` after refitting.
|
|
315
133
|
"""
|
|
316
|
-
if hasattr(self.
|
|
317
|
-
self.
|
|
134
|
+
if hasattr(self.ml_model, "fit"):
|
|
135
|
+
self.ml_model.fit(X, y)
|
|
318
136
|
print("🔁 Model refitted successfully.")
|
|
319
137
|
else:
|
|
320
138
|
raise NotImplementedError("This model type cannot be refitted.")
|
|
@@ -343,7 +161,7 @@ class Gam_Ai_Workflow:
|
|
|
343
161
|
- Confusion matrix plot
|
|
344
162
|
"""
|
|
345
163
|
|
|
346
|
-
y_pred = self.
|
|
164
|
+
y_pred = self.ml_model.predict(X)
|
|
347
165
|
acc = np.mean(y_pred == y_true)
|
|
348
166
|
print(f"🎯 Accuracy: {acc:.4f}\n")
|
|
349
167
|
print("📊 Classification Report:\n")
|
|
@@ -379,7 +197,7 @@ class Gam_Ai_Workflow:
|
|
|
379
197
|
- Mean Squared Error (MSE)
|
|
380
198
|
- Predicted vs. True value scatter plot
|
|
381
199
|
"""
|
|
382
|
-
y_pred = self.
|
|
200
|
+
y_pred = self.ml_model.predict(X)
|
|
383
201
|
r2 = r2_score(y_true, y_pred)
|
|
384
202
|
mae = mean_absolute_error(y_true, y_pred)
|
|
385
203
|
mse = mean_squared_error(y_true, y_pred)
|
|
@@ -423,13 +241,13 @@ class Gam_Ai_Workflow:
|
|
|
423
241
|
- This visualization assumes that the first two components or features
|
|
424
242
|
are suitable for 2D projection.
|
|
425
243
|
"""
|
|
426
|
-
if hasattr(self.
|
|
427
|
-
y_pred = self.
|
|
244
|
+
if hasattr(self.ml_model, "predict"):
|
|
245
|
+
y_pred = self.ml_model.predict(X)
|
|
428
246
|
plt.scatter(X[:, 0], X[:, 1], c=y_pred, cmap="viridis", s=30)
|
|
429
247
|
plt.title(f"Cluster Visualization — {self.gam.model_name}")
|
|
430
248
|
plt.show()
|
|
431
|
-
elif hasattr(self.
|
|
432
|
-
X_trans = self.
|
|
249
|
+
elif hasattr(self.ml_model, "transform"):
|
|
250
|
+
X_trans = self.ml_model.transform(X)
|
|
433
251
|
plt.scatter(X_trans[:, 0], X_trans[:, 1], s=30)
|
|
434
252
|
plt.title(f"Feature Space — {self.gam.model_name}")
|
|
435
253
|
plt.show()
|
|
@@ -475,6 +293,47 @@ class Gam_Ai_Workflow:
|
|
|
475
293
|
self.visualize_unsupervised(X)
|
|
476
294
|
else:
|
|
477
295
|
raise ValueError(f"Unknown model_type: {self.model_type}")
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
def get_GAM_AI_MODEL(self):
|
|
300
|
+
"""
|
|
301
|
+
Retrieve the fully loaded `.gam_ai` model instance associated with this workflow.
|
|
302
|
+
|
|
303
|
+
Returns
|
|
304
|
+
-------
|
|
305
|
+
GAM_AI_MODEL
|
|
306
|
+
The `GAM_AI_MODEL` object currently managed by this workflow instance.
|
|
307
|
+
This object encapsulates both the model’s metadata (e.g., author info,
|
|
308
|
+
training details, performance metrics) and the deserialized scikit-learn model
|
|
309
|
+
accessible via the attribute `ml_model`.
|
|
310
|
+
|
|
311
|
+
Examples
|
|
312
|
+
--------
|
|
313
|
+
>>> workflow = Gam_Ai_Workflow("cu-nanocomposites-poisson-ratio-lr")
|
|
314
|
+
✅ Loaded model 'cu-nanocomposites-poisson-ratio-lr' (train/test) successfully.
|
|
315
|
+
|
|
316
|
+
>>> gam_model = workflow.get_GAM_AI_MODEL()
|
|
317
|
+
>>> type(gam_model)
|
|
318
|
+
<class 'PyGamLab.ai_core.gam_ai.GAM_AI_MODEL'>
|
|
319
|
+
|
|
320
|
+
>>> gam_model.summary()
|
|
321
|
+
📘 MODEL METADATA SUMMARY
|
|
322
|
+
model_name: cu-nanocomposites-poisson-ratio-lr
|
|
323
|
+
author_name: Shaoyu Zhao, Yingyan Zhang, Yihe Zhang et al.
|
|
324
|
+
best_accuracy: {'MAE': 0.0541, 'MSE': 0.0042, 'R2': 0.39}
|
|
325
|
+
⚙️ ML Model: <class 'sklearn.linear_model._base.LinearRegression'>
|
|
326
|
+
|
|
327
|
+
Notes
|
|
328
|
+
-----
|
|
329
|
+
This method serves as a safe accessor for the underlying `GAM_AI_MODEL` instance
|
|
330
|
+
(`self.gam`) loaded during `Gam_Ai_Workflow` initialization.
|
|
331
|
+
It can be used to directly inspect model metadata, retrieve the raw ML model,
|
|
332
|
+
or perform low-level analysis without invoking higher-level workflow methods.
|
|
333
|
+
"""
|
|
334
|
+
return self.gam
|
|
335
|
+
|
|
336
|
+
|
|
478
337
|
|
|
479
338
|
|
|
480
339
|
|
|
@@ -484,7 +343,316 @@ class Gam_Ai_Workflow:
|
|
|
484
343
|
|
|
485
344
|
|
|
486
345
|
|
|
346
|
+
import os, json, io, base64, joblib
|
|
347
|
+
|
|
348
|
+
class GAM_AI_MODEL:
|
|
349
|
+
"""
|
|
350
|
+
A unified data structure for loading and representing `.gam_ai` model packages.
|
|
351
|
+
|
|
352
|
+
The `.gam_ai` format encapsulates both the machine learning model (serialized
|
|
353
|
+
via `joblib` and encoded in Base64) and its accompanying metadata.
|
|
354
|
+
This class provides a standardized interface for deserializing, inspecting,
|
|
355
|
+
and utilizing such packaged models within the PyGamLab AI ecosystem.
|
|
356
|
+
|
|
357
|
+
The class dynamically attaches metadata fields (e.g., `author_name`,
|
|
358
|
+
`model_type`, `best_accuracy`, etc.) as instance attributes and exposes
|
|
359
|
+
the trained ML model under the attribute `ml_model`.
|
|
360
|
+
|
|
361
|
+
Parameters
|
|
362
|
+
----------
|
|
363
|
+
model_name : str
|
|
364
|
+
The name of the model file (without the `.gam_ai` extension) to be loaded.
|
|
365
|
+
|
|
366
|
+
base_dir : str, optional
|
|
367
|
+
The base directory containing `.gam_ai` model files. If not provided,
|
|
368
|
+
the class automatically defaults to the `gam_models` directory located
|
|
369
|
+
alongside this module file.
|
|
370
|
+
|
|
371
|
+
Attributes
|
|
372
|
+
----------
|
|
373
|
+
model_name : str
|
|
374
|
+
The identifier of the loaded `.gam_ai` model.
|
|
375
|
+
|
|
376
|
+
file_path : str
|
|
377
|
+
Full path to the `.gam_ai` file on disk.
|
|
378
|
+
|
|
379
|
+
ml_model : object
|
|
380
|
+
The deserialized scikit-learn model instance (e.g., LinearRegression, RandomForestRegressor, etc.).
|
|
381
|
+
|
|
382
|
+
<dynamic_metadata_fields> : Any
|
|
383
|
+
All key-value pairs from the `"metadata"` section of the `.gam_ai` file are
|
|
384
|
+
dynamically added as attributes (e.g., `author_name`, `description`, `best_accuracy`, etc.).
|
|
385
|
+
|
|
386
|
+
Raises
|
|
387
|
+
------
|
|
388
|
+
FileNotFoundError
|
|
389
|
+
If the specified `.gam_ai` file cannot be found at the resolved `file_path`.
|
|
487
390
|
|
|
391
|
+
Examples
|
|
392
|
+
--------
|
|
393
|
+
>>> from PyGamLab.ai_core.gam_ai import GAM_AI_MODEL
|
|
394
|
+
>>> model = GAM_AI_MODEL("cu-nanocomposites-poisson-ratio-lr")
|
|
395
|
+
✅ Loaded GAM_AI_MODEL: 'cu-nanocomposites-poisson-ratio-lr'
|
|
396
|
+
|
|
397
|
+
>>> model.summary()
|
|
398
|
+
📘 MODEL METADATA SUMMARY
|
|
399
|
+
model_name: cu-nanocomposites-poisson-ratio-lr
|
|
400
|
+
model_type: train/test
|
|
401
|
+
author_name: Shaoyu Zhao, Yingyan Zhang, Yihe Zhang et al.
|
|
402
|
+
best_accuracy: {'MAE': 0.0541, 'MSE': 0.0042, ...}
|
|
403
|
+
⚙️ ML Model: <class 'sklearn.linear_model._base.LinearRegression'>
|
|
404
|
+
|
|
405
|
+
Notes
|
|
406
|
+
-----
|
|
407
|
+
- The `.gam_ai` file format is designed to preserve reproducibility of ML experiments.
|
|
408
|
+
- Metadata is stored in JSON format, while the ML model itself is serialized using `joblib`
|
|
409
|
+
and encoded with Base64 for portability.
|
|
410
|
+
- This class does not train or evaluate models; it only loads and interprets
|
|
411
|
+
pre-trained model artifacts.
|
|
412
|
+
|
|
413
|
+
See Also
|
|
414
|
+
--------
|
|
415
|
+
Gam_Ai_Workflow : High-level workflow manager that builds upon this class to
|
|
416
|
+
provide evaluation, visualization, and retraining utilities.
|
|
417
|
+
"""
|
|
418
|
+
|
|
419
|
+
def __init__(self, model_name, base_dir=None):
|
|
420
|
+
self.model_name = model_name
|
|
421
|
+
|
|
422
|
+
# Default directory if none provided
|
|
423
|
+
if base_dir is None:
|
|
424
|
+
base_dir = os.path.join(os.path.dirname(__file__), "gam_models")
|
|
425
|
+
|
|
426
|
+
self.file_path = os.path.join(base_dir, f"{model_name}.gam_ai")
|
|
427
|
+
|
|
428
|
+
if not os.path.exists(self.file_path):
|
|
429
|
+
raise FileNotFoundError(f"❌ File not found: {self.file_path}")
|
|
430
|
+
|
|
431
|
+
# --- Load JSON file ---
|
|
432
|
+
with open(self.file_path, "r") as f:
|
|
433
|
+
data = json.load(f)
|
|
434
|
+
|
|
435
|
+
metadata = data.get("metadata", {})
|
|
436
|
+
model_data = data.get("model_data", None)
|
|
437
|
+
|
|
438
|
+
# --- Assign metadata attributes dynamically ---
|
|
439
|
+
for key, value in metadata.items():
|
|
440
|
+
setattr(self, key, value)
|
|
441
|
+
|
|
442
|
+
# --- Decode Base64 model ---
|
|
443
|
+
if model_data:
|
|
444
|
+
model_bytes = base64.b64decode(model_data)
|
|
445
|
+
buffer = io.BytesIO(model_bytes)
|
|
446
|
+
self.ml_model = joblib.load(buffer)
|
|
447
|
+
else:
|
|
448
|
+
self.ml_model = None
|
|
449
|
+
|
|
450
|
+
print(f"✅ Loaded GAM_AI_MODEL: '{self.model_name}'")
|
|
451
|
+
|
|
452
|
+
def summary(self):
|
|
453
|
+
"""
|
|
454
|
+
Print a structured overview of all model metadata.
|
|
455
|
+
|
|
456
|
+
This method displays the dynamically loaded metadata attributes
|
|
457
|
+
(e.g., author information, accuracy metrics, DOI, etc.) and the
|
|
458
|
+
associated machine learning model type.
|
|
459
|
+
|
|
460
|
+
Examples
|
|
461
|
+
--------
|
|
462
|
+
>>> model.summary()
|
|
463
|
+
📘 MODEL METADATA SUMMARY
|
|
464
|
+
model_name: cu-nanocomposites-poisson-ratio-lr
|
|
465
|
+
model_type: train/test
|
|
466
|
+
author_name: Shaoyu Zhao
|
|
467
|
+
best_accuracy: {'MAE': 0.054, 'MSE': 0.0042}
|
|
468
|
+
⚙️ ML Model: <class 'sklearn.linear_model._base.LinearRegression'>
|
|
469
|
+
"""
|
|
470
|
+
|
|
471
|
+
print("\n📘 MODEL METADATA SUMMARY\n")
|
|
472
|
+
for k, v in self.__dict__.items():
|
|
473
|
+
if k not in ("ml_model", "file_path"):
|
|
474
|
+
print(f"{k}: {v}")
|
|
475
|
+
print("\n⚙️ ML Model:", type(self.ml_model))
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
class GamAI_io:
|
|
483
|
+
"""
|
|
484
|
+
A unified input/output handler for saving and loading `.gam_ai` model packages.
|
|
485
|
+
|
|
486
|
+
This class encapsulates both machine learning model serialization and
|
|
487
|
+
relevant metadata (e.g., author info, model parameters, training details)
|
|
488
|
+
into a single portable `.gam_ai` file. It enables seamless model deployment,
|
|
489
|
+
archival, and reproducibility by combining the binary model object and
|
|
490
|
+
human-readable metadata in one structured JSON container.
|
|
491
|
+
|
|
492
|
+
Parameters
|
|
493
|
+
----------
|
|
494
|
+
model_name : str, optional
|
|
495
|
+
A short, descriptive name for the model. Used as the filename during saving.
|
|
496
|
+
model_type : str, optional
|
|
497
|
+
The algorithmic or architectural family of the model
|
|
498
|
+
(e.g., "RandomForest", "XGBoost", "CNN", "Transformer").
|
|
499
|
+
description : str, optional, default=""
|
|
500
|
+
A brief summary describing the model’s purpose, training dataset,
|
|
501
|
+
or key features.
|
|
502
|
+
author_name : str, optional, default=""
|
|
503
|
+
Full name of the model creator.
|
|
504
|
+
author_email : str, optional, default=""
|
|
505
|
+
Contact email for correspondence or citation.
|
|
506
|
+
trainer_name : str, optional, default=""
|
|
507
|
+
The individual or system responsible for model training.
|
|
508
|
+
best_accuracy : float, optional
|
|
509
|
+
The highest validation or test accuracy achieved during training.
|
|
510
|
+
doi : str, optional
|
|
511
|
+
Digital Object Identifier (DOI) associated with the published model or dataset.
|
|
512
|
+
hyperparam_range : dict, optional, default={}
|
|
513
|
+
Dictionary defining hyperparameter search ranges used during optimization.
|
|
514
|
+
best_params : dict, optional, default={}
|
|
515
|
+
Dictionary of the final optimized hyperparameter values.
|
|
516
|
+
ml_model : object, optional
|
|
517
|
+
The trained machine learning model instance (e.g., scikit-learn estimator).
|
|
518
|
+
|
|
519
|
+
Notes
|
|
520
|
+
-----
|
|
521
|
+
The `.gam_ai` file format consists of a JSON object with two main sections:
|
|
522
|
+
|
|
523
|
+
- **metadata**: Contains descriptive fields such as author, model type,
|
|
524
|
+
and hyperparameters.
|
|
525
|
+
- **model_data**: Contains the Base64-encoded binary serialization of the
|
|
526
|
+
trained model, produced via `joblib`.
|
|
527
|
+
|
|
528
|
+
This approach ensures full portability and JSON readability, enabling
|
|
529
|
+
both programmatic and manual inspection of model metadata.
|
|
530
|
+
|
|
531
|
+
Examples
|
|
532
|
+
--------
|
|
533
|
+
>>> from gamai_io import GamAI_io
|
|
534
|
+
>>> from sklearn.ensemble import RandomForestClassifier
|
|
535
|
+
>>> model = RandomForestClassifier(n_estimators=100, random_state=42)
|
|
536
|
+
>>> model.fit(X_train, y_train)
|
|
537
|
+
>>>
|
|
538
|
+
>>> package = GamAI_io(
|
|
539
|
+
... model_name="rf_classifier_v1",
|
|
540
|
+
... model_type="RandomForest",
|
|
541
|
+
... description="Predicts material phases using compositional data",
|
|
542
|
+
... author_name="John Doe",
|
|
543
|
+
... author_email="john.doe@example.com",
|
|
544
|
+
... best_accuracy=0.94,
|
|
545
|
+
... hyperparam_range={"n_estimators": [50, 100, 200]},
|
|
546
|
+
... best_params={"n_estimators": 100, "max_depth": 10},
|
|
547
|
+
... ml_model=model
|
|
548
|
+
... )
|
|
549
|
+
>>>
|
|
550
|
+
>>> # Save to file
|
|
551
|
+
>>> package.save(save_dir="models")
|
|
552
|
+
💾 Saved ml_model package: models/rf_classifier_v1.gam_ai
|
|
553
|
+
>>>
|
|
554
|
+
>>> # Load from file
|
|
555
|
+
>>> loaded_package = GamAI_io.load("models/rf_classifier_v1.gam_ai")
|
|
556
|
+
>>> restored_model = loaded_package.ml_model
|
|
557
|
+
>>> restored_model.predict(X_test[:5])
|
|
558
|
+
|
|
559
|
+
See Also
|
|
560
|
+
--------
|
|
561
|
+
joblib.dump : Efficient serialization of Python objects.
|
|
562
|
+
json : Standard JSON encoder/decoder.
|
|
563
|
+
base64 : Encoding binary model data for safe JSON storage.
|
|
564
|
+
|
|
565
|
+
"""
|
|
566
|
+
|
|
567
|
+
def __init__(self, **kwargs):
|
|
568
|
+
self.model_name = kwargs.get("model_name")
|
|
569
|
+
self.model_type = kwargs.get("model_type")
|
|
570
|
+
self.description = kwargs.get("description", "")
|
|
571
|
+
self.author_name = kwargs.get("author_name", "")
|
|
572
|
+
self.author_email = kwargs.get("author_email", "")
|
|
573
|
+
self.trainer_name = kwargs.get("trainer_name", "")
|
|
574
|
+
self.best_accuracy = kwargs.get("best_accuracy", None)
|
|
575
|
+
self.doi=kwargs.get("doi", None)
|
|
576
|
+
self.hyperparam_range = kwargs.get("hyperparam_range", {})
|
|
577
|
+
self.best_params = kwargs.get("best_params", {})
|
|
578
|
+
self.ml_model = kwargs.get("ml_model", None)
|
|
579
|
+
|
|
580
|
+
# ----------- Save ----------
|
|
581
|
+
def save(self, save_dir="models"):
|
|
582
|
+
"""
|
|
583
|
+
Serialize and save the current model and metadata as a `.gam_ai` package.
|
|
584
|
+
|
|
585
|
+
Parameters
|
|
586
|
+
----------
|
|
587
|
+
save_dir : str, optional, default="models"
|
|
588
|
+
The target directory to save the `.gam_ai` file.
|
|
589
|
+
The directory will be created if it does not exist.
|
|
590
|
+
|
|
591
|
+
Raises
|
|
592
|
+
------
|
|
593
|
+
ValueError
|
|
594
|
+
If no model (`ml_model`) is attached to the current instance.
|
|
595
|
+
|
|
596
|
+
Notes
|
|
597
|
+
-----
|
|
598
|
+
The model is serialized via `joblib` and encoded with Base64 to
|
|
599
|
+
ensure JSON compatibility. The resulting file can be safely shared
|
|
600
|
+
or uploaded to repositories without binary corruption.
|
|
601
|
+
|
|
602
|
+
"""
|
|
603
|
+
os.makedirs(save_dir, exist_ok=True)
|
|
604
|
+
filename = f"{self.model_name}.gam_ai"
|
|
605
|
+
filepath = os.path.join(save_dir, filename)
|
|
606
|
+
|
|
607
|
+
if self.ml_model is None:
|
|
608
|
+
raise ValueError("No ml_model attached to save inside .gam_ai.")
|
|
609
|
+
|
|
610
|
+
buffer = io.BytesIO()
|
|
611
|
+
joblib.dump(self.ml_model, buffer)
|
|
612
|
+
buffer.seek(0)
|
|
613
|
+
encoded_model = base64.b64encode(buffer.read()).decode("utf-8")
|
|
614
|
+
|
|
615
|
+
data = {
|
|
616
|
+
"metadata": {k: v for k, v in self.__dict__.items() if k != "ml_model"},
|
|
617
|
+
"model_data": encoded_model
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
with open(filepath, "w") as f:
|
|
621
|
+
json.dump(data, f, indent=4)
|
|
622
|
+
print(f"💾 Saved ml_model package: {filepath}")
|
|
623
|
+
|
|
624
|
+
# ----------- Load ----------
|
|
625
|
+
@staticmethod
|
|
626
|
+
def load(filepath):
|
|
627
|
+
"""
|
|
628
|
+
Load a `.gam_ai` model package from disk.
|
|
629
|
+
|
|
630
|
+
Parameters
|
|
631
|
+
----------
|
|
632
|
+
filepath : str
|
|
633
|
+
Full path to the `.gam_ai` file to be loaded.
|
|
634
|
+
|
|
635
|
+
Returns
|
|
636
|
+
-------
|
|
637
|
+
GamAI_io
|
|
638
|
+
A `GamAI_io` instance containing both metadata and the
|
|
639
|
+
deserialized machine learning model (`ml_model`).
|
|
640
|
+
|
|
641
|
+
Notes
|
|
642
|
+
-----
|
|
643
|
+
The loading process reverses the Base64 encoding and `joblib`
|
|
644
|
+
serialization to reconstruct the original model object.
|
|
645
|
+
|
|
646
|
+
"""
|
|
647
|
+
with open(filepath, "r") as f:
|
|
648
|
+
data = json.load(f)
|
|
649
|
+
metadata = data["metadata"]
|
|
650
|
+
model_data = base64.b64decode(data["model_data"])
|
|
651
|
+
buffer = io.BytesIO(model_data)
|
|
652
|
+
model = joblib.load(buffer)
|
|
653
|
+
return GamAI_io(**metadata, model=model)
|
|
654
|
+
|
|
655
|
+
|
|
488
656
|
|
|
489
657
|
|
|
490
658
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyGamLab
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.8.0
|
|
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
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
PyGamLab/Constants.py,sha256=
|
|
2
|
-
PyGamLab/Converters.py,sha256=
|
|
3
|
-
PyGamLab/Data_Analysis.py,sha256=
|
|
4
|
-
PyGamLab/Functions.py,sha256=
|
|
5
|
-
PyGamLab/__init__.py,sha256=
|
|
1
|
+
PyGamLab/Constants.py,sha256=6hohzhJzegsr7JHgTUgsGM6MVvJJcGolOipI6ml1OFY,119258
|
|
2
|
+
PyGamLab/Converters.py,sha256=9sqfa4L2ESMbSOlUFr4Ptc_LHvDqYObXqMwUxRoJktU,46052
|
|
3
|
+
PyGamLab/Data_Analysis.py,sha256=8xfKL53YztF4JS1irP7Txrky38KfU21tII-YF1pWgqw,225660
|
|
4
|
+
PyGamLab/Functions.py,sha256=5YCRjwecF6zoHnhbUgGRzJTocy-NVLfOxQOT8Fhlf_c,144313
|
|
5
|
+
PyGamLab/__init__.py,sha256=UuEJJFTDuGgDG7hokVldhPL5Gdb5udBZpGa5q_Sq5iY,2000
|
|
6
6
|
PyGamLab/ai_core/__init__.py,sha256=2h3hnypSsMA8sb9jZrfEfAMoCb-6fZQifMJk4ZxGr54,122
|
|
7
|
-
PyGamLab/ai_core/gam_ai.py,sha256=
|
|
7
|
+
PyGamLab/ai_core/gam_ai.py,sha256=Gx5IlwBfW6ApFPtAEQlYUYP2fwxh3jinkzrHL8B4uBA,22128
|
|
8
8
|
PyGamLab/ai_core/gam_models/Graphene-armchair-decision-tree-pipe.gam_ai,sha256=Js0k8n1d6mQg9fgKZAGqRvbsRjenw91R-HqM5a85SAU,1871
|
|
9
9
|
PyGamLab/ai_core/gam_models/Graphene-armchair-decision-tree.gam_ai,sha256=hkf46B4dwkCQaEkztyTgAtzsK6OIfx9WUHYMZIuxO7k,6132
|
|
10
10
|
PyGamLab/ai_core/gam_models/Graphene-armchair-knn-pipe.gam_ai,sha256=N71yKhyMhf8M8ZG1d2xjvso1FfJF58EfQKL_NPQZTYI,1517
|
|
@@ -179,7 +179,7 @@ PyGamLab/structures/io/checker.py,sha256=mpSSPX0PoOA2E43pFMj7zpVG4kbUQDRak6ixNCW
|
|
|
179
179
|
PyGamLab/structures/io/conversions.py,sha256=z_bIzF5SNNNzUUYvnmR5rPsMKfODmOB2dN51RDhzHi4,13457
|
|
180
180
|
PyGamLab/structures/io/export.py,sha256=mput2AN7qGD2LlaUVffCQOllWtSVpWN-ilh7eOWg8FQ,13747
|
|
181
181
|
PyGamLab/structures/io/read.py,sha256=JD6WUZolqdRWXdYOHqaw2GXCBwp-OGDyjJaBChfRyQM,21955
|
|
182
|
-
pygamlab-1.
|
|
183
|
-
pygamlab-1.
|
|
184
|
-
pygamlab-1.
|
|
185
|
-
pygamlab-1.
|
|
182
|
+
pygamlab-1.8.0.dist-info/METADATA,sha256=G8iqj530CGs3PhlBRRIUrs_sf2xebDRdUXfopBSeQgc,12419
|
|
183
|
+
pygamlab-1.8.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
184
|
+
pygamlab-1.8.0.dist-info/top_level.txt,sha256=E5IBZwx9PoAR8NyXgNAT3iUIuGvYfJlfyOKQY1sNkXU,9
|
|
185
|
+
pygamlab-1.8.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|