lecrapaud 0.12.0__py3-none-any.whl → 0.12.2__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 +5 -1
- lecrapaud/model_selection.py +1 -1
- {lecrapaud-0.12.0.dist-info → lecrapaud-0.12.2.dist-info}/METADATA +1 -1
- {lecrapaud-0.12.0.dist-info → lecrapaud-0.12.2.dist-info}/RECORD +6 -6
- {lecrapaud-0.12.0.dist-info → lecrapaud-0.12.2.dist-info}/LICENSE +0 -0
- {lecrapaud-0.12.0.dist-info → lecrapaud-0.12.2.dist-info}/WHEEL +0 -0
lecrapaud/api.py
CHANGED
|
@@ -335,6 +335,10 @@ class ExperimentEngine:
|
|
|
335
335
|
group_column=self.group_column,
|
|
336
336
|
target_clf_thresholds=self.target_clf_thresholds,
|
|
337
337
|
)
|
|
338
|
+
if best_params and target_number not in best_params.keys():
|
|
339
|
+
raise ValueError(
|
|
340
|
+
f"Target {target_number} not found in best_params passed as argument"
|
|
341
|
+
)
|
|
338
342
|
app.run(
|
|
339
343
|
self.experiment_name,
|
|
340
344
|
perform_hyperopt=self.perform_hyperopt,
|
|
@@ -342,7 +346,7 @@ class ExperimentEngine:
|
|
|
342
346
|
perform_crossval=self.perform_crossval,
|
|
343
347
|
plot=self.plot,
|
|
344
348
|
preserve_model=self.preserve_model,
|
|
345
|
-
best_params=best_params[target_number],
|
|
349
|
+
best_params=best_params[target_number] if best_params else None,
|
|
346
350
|
)
|
|
347
351
|
|
|
348
352
|
def get_scores(self, target_number: int):
|
lecrapaud/model_selection.py
CHANGED
|
@@ -1143,7 +1143,7 @@ class ModelSelectionEngine:
|
|
|
1143
1143
|
try:
|
|
1144
1144
|
results = tuner.fit()
|
|
1145
1145
|
|
|
1146
|
-
best_result = results.get_best_result(self.metric, "
|
|
1146
|
+
best_result = results.get_best_result(self.metric, "min")
|
|
1147
1147
|
best_params = best_result.config
|
|
1148
1148
|
best_score = best_result.metrics
|
|
1149
1149
|
|
|
@@ -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=SbO54-SzrNhJKF3obPndQ_fhPPhCSwjbitq2D-AbucQ,17648
|
|
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
|
|
@@ -35,10 +35,10 @@ lecrapaud/misc/tabpfn_tests.ipynb,sha256=VkgsCUJ30d8jaL2VaWtQAgb8ngHPNtPgnXLs7QQ
|
|
|
35
35
|
lecrapaud/misc/test-gpu-bilstm.ipynb,sha256=4nLuZRJVe2kn6kEmauhRiz5wkWT9AVrYhI9CEk_dYUY,9608
|
|
36
36
|
lecrapaud/misc/test-gpu-resnet.ipynb,sha256=27Vu7nYwujYeh3fOxBNCnKJn3MXNPKZU-U8oDDUbymg,4944
|
|
37
37
|
lecrapaud/misc/test-gpu-transformers.ipynb,sha256=k6MBSs_Um1h4PykvE-LTBcdpbWLbIFST_xl_AFW2jgI,8444
|
|
38
|
-
lecrapaud/model_selection.py,sha256=
|
|
38
|
+
lecrapaud/model_selection.py,sha256=8TfYjVJnFDviycX4DMe6mpHm7oxTfS-UXO55TvOLPJs,63377
|
|
39
39
|
lecrapaud/search_space.py,sha256=-JkzuMhaomdwiWi4HvVQY5hiw3-oREemJA16tbwEIp4,34854
|
|
40
40
|
lecrapaud/utils.py,sha256=JdBB1NvbNIx4y0Una-kSZdo1_ZEocc5hwyYFIZKHmGg,8305
|
|
41
|
-
lecrapaud-0.12.
|
|
42
|
-
lecrapaud-0.12.
|
|
43
|
-
lecrapaud-0.12.
|
|
44
|
-
lecrapaud-0.12.
|
|
41
|
+
lecrapaud-0.12.2.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
|
|
42
|
+
lecrapaud-0.12.2.dist-info/METADATA,sha256=jTIJTd-WxOyzdx8dM7cZJYPtPAg0hbzhxVs80cdBRNQ,11016
|
|
43
|
+
lecrapaud-0.12.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
44
|
+
lecrapaud-0.12.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|