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 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,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lecrapaud
3
- Version: 0.12.1
3
+ Version: 0.12.2
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
@@ -1,5 +1,5 @@
1
1
  lecrapaud/__init__.py,sha256=oCxbtw_nk8rlOXbXbWo0RRMlsh6w-hTiZ6e5PRG_wp0,28
2
- lecrapaud/api.py,sha256=YKxeWcTuq3QZ-UI9UjRkq7OI7W1UXW0EWgBbY3uEmLE,17409
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.1.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
42
- lecrapaud-0.12.1.dist-info/METADATA,sha256=AIsGG4s0ZD_P3d2rRj-vGgDFvQzTO8ipvM_zmEbKZv8,11016
43
- lecrapaud-0.12.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
44
- lecrapaud-0.12.1.dist-info/RECORD,,
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,,