lecrapaud 0.18.4__tar.gz → 0.18.6__tar.gz

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.

Files changed (46) hide show
  1. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/PKG-INFO +1 -1
  2. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/api.py +4 -3
  3. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/utils.py +1 -5
  4. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/pyproject.toml +1 -1
  5. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/LICENSE +0 -0
  6. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/README.md +0 -0
  7. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/__init__.py +0 -0
  8. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/config.py +0 -0
  9. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/__init__.py +0 -0
  10. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/alembic/README +0 -0
  11. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/alembic/env.py +0 -0
  12. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/alembic/script.py.mako +0 -0
  13. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/alembic/versions/2025_06_23_1748-f089dfb7e3ba_.py +0 -0
  14. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/alembic/versions/2025_06_24_1216-c62251b129ed_.py +0 -0
  15. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/alembic/versions/2025_06_24_1711-86457e2f333f_.py +0 -0
  16. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/alembic/versions/2025_06_25_1759-72aa496ca65b_.py +0 -0
  17. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/alembic/versions/2025_08_25_1434-7ed9963e732f_add_best_score_to_model_selection.py +0 -0
  18. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/alembic.ini +0 -0
  19. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/__init__.py +0 -0
  20. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/base.py +0 -0
  21. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/experiment.py +0 -0
  22. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/feature.py +0 -0
  23. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/feature_selection.py +0 -0
  24. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/feature_selection_rank.py +0 -0
  25. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/model.py +0 -0
  26. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/model_selection.py +0 -0
  27. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/model_training.py +0 -0
  28. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/score.py +0 -0
  29. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/target.py +0 -0
  30. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/models/utils.py +0 -0
  31. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/db/session.py +0 -0
  32. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/directories.py +0 -0
  33. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/experiment.py +0 -0
  34. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/feature_engineering.py +0 -0
  35. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/feature_selection.py +0 -0
  36. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/integrations/openai_integration.py +0 -0
  37. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/jobs/__init__.py +0 -0
  38. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/jobs/config.py +0 -0
  39. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/jobs/scheduler.py +0 -0
  40. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/jobs/tasks.py +0 -0
  41. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/misc/tabpfn_tests.ipynb +0 -0
  42. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/misc/test-gpu-bilstm.ipynb +0 -0
  43. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/misc/test-gpu-resnet.ipynb +0 -0
  44. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/misc/test-gpu-transformers.ipynb +0 -0
  45. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/model_selection.py +0 -0
  46. {lecrapaud-0.18.4 → lecrapaud-0.18.6}/lecrapaud/search_space.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lecrapaud
3
- Version: 0.18.4
3
+ Version: 0.18.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
@@ -96,9 +96,10 @@ class LeCrapaud:
96
96
  self, name: str, metric: str = "both", **kwargs
97
97
  ) -> "ExperimentEngine":
98
98
  """Retrieve the best experiment by score."""
99
- return ExperimentEngine(
100
- id=Experiment.get_best_by_score(name=name, metric=metric).id, **kwargs
101
- )
99
+ best_exp = Experiment.get_best_by_score(name=name, metric=metric)
100
+ if not best_exp:
101
+ return None
102
+ return ExperimentEngine(id=best_exp.id, **kwargs)
102
103
 
103
104
  def compare_experiment_scores(self, name: str):
104
105
  """Compare scores of experiments with matching names.
@@ -9,8 +9,6 @@ from ftfy import fix_text
9
9
  import unicodedata
10
10
  import re
11
11
  import string
12
- import sys
13
- import tomllib
14
12
 
15
13
  from lecrapaud.directories import logger_dir
16
14
  from lecrapaud.config import LOGGING_LEVEL, PYTHON_ENV, LECRAPAUD_LOCAL
@@ -21,9 +19,7 @@ _LECRAPAUD_LOGGER_ALREADY_CONFIGURED = False
21
19
 
22
20
  def setup_logger():
23
21
 
24
- with open("pyproject.toml", "rb") as f:
25
- pyproject_data = tomllib.load(f)
26
- name = pyproject_data["project"]["name"]
22
+ name = "lecrapaud"
27
23
 
28
24
  global _LECRAPAUD_LOGGER_ALREADY_CONFIGURED
29
25
  if _LECRAPAUD_LOGGER_ALREADY_CONFIGURED: # ← bail out if done before
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lecrapaud"
3
- version = "0.18.4"
3
+ version = "0.18.6"
4
4
  description = "Framework for machine and deep learning, with regression, classification and time series analysis"
5
5
  authors = [
6
6
  {name = "Pierre H. Gallet"}
File without changes
File without changes