lecrapaud 0.11.4__py3-none-any.whl → 0.11.6__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.
Potentially problematic release.
This version of lecrapaud might be problematic. Click here for more details.
- lecrapaud/api.py +12 -7
- {lecrapaud-0.11.4.dist-info → lecrapaud-0.11.6.dist-info}/METADATA +2 -2
- {lecrapaud-0.11.4.dist-info → lecrapaud-0.11.6.dist-info}/RECORD +5 -5
- {lecrapaud-0.11.4.dist-info → lecrapaud-0.11.6.dist-info}/LICENSE +0 -0
- {lecrapaud-0.11.4.dist-info → lecrapaud-0.11.6.dist-info}/WHEEL +0 -0
lecrapaud/api.py
CHANGED
|
@@ -209,14 +209,19 @@ class ExperimentEngine:
|
|
|
209
209
|
)
|
|
210
210
|
y_pred.name = "PRED"
|
|
211
211
|
|
|
212
|
-
# evaluate if TARGET is in columns
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
# evaluate if TARGET is in columns (case-insensitive check)
|
|
213
|
+
target_col = next(
|
|
214
|
+
(
|
|
215
|
+
col
|
|
216
|
+
for col in new_data.columns
|
|
217
|
+
if col.upper() == f"TARGET_{target_number}"
|
|
218
|
+
),
|
|
219
|
+
None,
|
|
220
|
+
)
|
|
221
|
+
if target_col is not None:
|
|
222
|
+
y_true = new_data[target_col]
|
|
216
223
|
prediction = pd.concat([y_true, y_pred], axis=1)
|
|
217
|
-
prediction.rename(
|
|
218
|
-
columns={f"TARGET_{target_number}": "TARGET"}, inplace=True
|
|
219
|
-
)
|
|
224
|
+
prediction.rename(columns={target_col: "TARGET"}, inplace=True)
|
|
220
225
|
score = evaluate(
|
|
221
226
|
prediction,
|
|
222
227
|
target_type=model.target_type,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: lecrapaud
|
|
3
|
-
Version: 0.11.
|
|
3
|
+
Version: 0.11.6
|
|
4
4
|
Summary: Framework for machine and deep learning, with regression, classification and time series analysis
|
|
5
5
|
License: Apache License
|
|
6
6
|
Author: Pierre H. Gallet
|
|
@@ -21,7 +21,7 @@ Requires-Dist: openai (>=1.88.0)
|
|
|
21
21
|
Requires-Dist: pandas (>=2.3.0)
|
|
22
22
|
Requires-Dist: python-dotenv (>=1.1.0)
|
|
23
23
|
Requires-Dist: scikit-learn (>=1.6.1)
|
|
24
|
-
Requires-Dist: scipy (
|
|
24
|
+
Requires-Dist: scipy (<1.14.0)
|
|
25
25
|
Requires-Dist: seaborn (>=0.13.2)
|
|
26
26
|
Requires-Dist: sqlalchemy (>=2.0.41)
|
|
27
27
|
Requires-Dist: tensorboardx (>=2.6.4)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
lecrapaud/__init__.py,sha256=oCxbtw_nk8rlOXbXbWo0RRMlsh6w-hTiZ6e5PRG_wp0,28
|
|
2
|
-
lecrapaud/api.py,sha256=
|
|
2
|
+
lecrapaud/api.py,sha256=UWtfiNy9SiJqh36G9GMJIG5wf2V6unhw9HuGyudE76g,17292
|
|
3
3
|
lecrapaud/config.py,sha256=eYnrktVq457xMIMGcUSilJdNxCsaGP_gRAlzCSwd6Vo,1047
|
|
4
4
|
lecrapaud/db/__init__.py,sha256=82o9fMfaqKXPh2_rt44EzNRVZV1R4LScEnQYvj_TjK0,34
|
|
5
5
|
lecrapaud/db/alembic/README,sha256=MVlc9TYmr57RbhXET6QxgyCcwWP7w-vLkEsirENqiIQ,38
|
|
@@ -38,7 +38,7 @@ lecrapaud/misc/test-gpu-transformers.ipynb,sha256=k6MBSs_Um1h4PykvE-LTBcdpbWLbIF
|
|
|
38
38
|
lecrapaud/model_selection.py,sha256=h4WPtGCUeuWIXDJ8L2-i1I7RwrZlnxAresGW5l8bGwE,63195
|
|
39
39
|
lecrapaud/search_space.py,sha256=-JkzuMhaomdwiWi4HvVQY5hiw3-oREemJA16tbwEIp4,34854
|
|
40
40
|
lecrapaud/utils.py,sha256=JdBB1NvbNIx4y0Una-kSZdo1_ZEocc5hwyYFIZKHmGg,8305
|
|
41
|
-
lecrapaud-0.11.
|
|
42
|
-
lecrapaud-0.11.
|
|
43
|
-
lecrapaud-0.11.
|
|
44
|
-
lecrapaud-0.11.
|
|
41
|
+
lecrapaud-0.11.6.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
|
|
42
|
+
lecrapaud-0.11.6.dist-info/METADATA,sha256=MHP2RHQHJxrD2qFrVlm2SdHft5bmGKCLrebg_e8WOeQ,11016
|
|
43
|
+
lecrapaud-0.11.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
44
|
+
lecrapaud-0.11.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|