lecrapaud 0.11.0__tar.gz → 0.11.1__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 (44) hide show
  1. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/PKG-INFO +1 -1
  2. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/api.py +4 -0
  3. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/config.py +1 -0
  4. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/utils.py +6 -3
  5. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/pyproject.toml +1 -1
  6. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/LICENSE +0 -0
  7. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/README.md +0 -0
  8. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/__init__.py +0 -0
  9. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/__init__.py +0 -0
  10. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/alembic/README +0 -0
  11. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/alembic/env.py +0 -0
  12. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/alembic/script.py.mako +0 -0
  13. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/alembic/versions/2025_06_23_1748-f089dfb7e3ba_.py +0 -0
  14. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/alembic/versions/2025_06_24_1216-c62251b129ed_.py +0 -0
  15. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/alembic/versions/2025_06_24_1711-86457e2f333f_.py +0 -0
  16. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/alembic/versions/2025_06_25_1759-72aa496ca65b_.py +0 -0
  17. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/alembic.ini +0 -0
  18. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/models/__init__.py +0 -0
  19. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/models/base.py +0 -0
  20. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/models/experiment.py +0 -0
  21. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/models/feature.py +0 -0
  22. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/models/feature_selection.py +0 -0
  23. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/models/feature_selection_rank.py +0 -0
  24. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/models/model.py +0 -0
  25. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/models/model_selection.py +0 -0
  26. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/models/model_training.py +0 -0
  27. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/models/score.py +0 -0
  28. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/models/target.py +0 -0
  29. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/db/session.py +0 -0
  30. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/directories.py +0 -0
  31. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/experiment.py +0 -0
  32. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/feature_engineering.py +0 -0
  33. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/feature_selection.py +0 -0
  34. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/integrations/openai_integration.py +0 -0
  35. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/jobs/__init__.py +0 -0
  36. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/jobs/config.py +0 -0
  37. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/jobs/scheduler.py +0 -0
  38. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/jobs/tasks.py +0 -0
  39. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/misc/tabpfn_tests.ipynb +0 -0
  40. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/misc/test-gpu-bilstm.ipynb +0 -0
  41. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/misc/test-gpu-resnet.ipynb +0 -0
  42. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/misc/test-gpu-transformers.ipynb +0 -0
  43. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/model_selection.py +0 -0
  44. {lecrapaud-0.11.0 → lecrapaud-0.11.1}/lecrapaud/search_space.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lecrapaud
3
- Version: 0.11.0
3
+ Version: 0.11.1
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
@@ -85,6 +85,10 @@ class LeCrapaud:
85
85
  """
86
86
  return ExperimentEngine(id=id, **kwargs)
87
87
 
88
+ def list_experiments(self, limit=1000) -> list[ExperimentEngine]:
89
+ """List all experiments in the database."""
90
+ return [ExperimentEngine(id=exp.id) for exp in Experiment.get_all(limit=limit)]
91
+
88
92
 
89
93
  class ExperimentEngine:
90
94
  """Engine for managing ML experiments.
@@ -32,3 +32,4 @@ DB_URI = (
32
32
  )
33
33
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
34
34
  LECRAPAUD_LOGFILE = os.getenv("LECRAPAUD_LOGFILE")
35
+ LECRAPAUD_LOCAL = os.getenv("LECRAPAUD_LOCAL", False)
@@ -11,7 +11,7 @@ import re
11
11
  import string
12
12
 
13
13
  from lecrapaud.directories import logger_dir
14
- from lecrapaud.config import LOGGING_LEVEL, PYTHON_ENV
14
+ from lecrapaud.config import LOGGING_LEVEL, PYTHON_ENV, LECRAPAUD_LOCAL
15
15
 
16
16
  _LECRAPAUD_LOGGER_ALREADY_CONFIGURED = False
17
17
 
@@ -24,7 +24,7 @@ def setup_logger():
24
24
  return logging.getLogger("lecrapaud" if PYTHON_ENV != "Worker" else "")
25
25
 
26
26
  print(
27
- f"Setting up logger with PYTHON_ENV {PYTHON_ENV} and LOGGING_LEVEL {LOGGING_LEVEL}"
27
+ f"Setting up logger lecrapaud with PYTHON_ENV {PYTHON_ENV} and LOGGING_LEVEL {LOGGING_LEVEL}"
28
28
  )
29
29
  # ------------------------------------------------------------------ #
30
30
  # Real configuration happens only on the FIRST call #
@@ -61,7 +61,10 @@ def setup_logger():
61
61
  return logger
62
62
 
63
63
 
64
- logger = setup_logger()
64
+ if LECRAPAUD_LOCAL:
65
+ logger = setup_logger()
66
+ else:
67
+ logger = logging.getLogger(__name__)
65
68
 
66
69
 
67
70
  def get_df_name(obj, namespace):
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lecrapaud"
3
- version = "0.11.0"
3
+ version = "0.11.1"
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