lecrapaud 0.12.1__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-0.12.1.dist-info → lecrapaud-0.12.2.dist-info}/METADATA +1 -1
- {lecrapaud-0.12.1.dist-info → lecrapaud-0.12.2.dist-info}/RECORD +5 -5
- {lecrapaud-0.12.1.dist-info → lecrapaud-0.12.2.dist-info}/LICENSE +0 -0
- {lecrapaud-0.12.1.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):
|
|
@@ -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
|
|
@@ -38,7 +38,7 @@ lecrapaud/misc/test-gpu-transformers.ipynb,sha256=k6MBSs_Um1h4PykvE-LTBcdpbWLbIF
|
|
|
38
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
|