lecrapaud 0.16.2__tar.gz → 0.16.4__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 (45) hide show
  1. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/PKG-INFO +1 -1
  2. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/alembic.ini +7 -1
  3. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/model_selection.py +23 -19
  4. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/pyproject.toml +1 -1
  5. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/LICENSE +0 -0
  6. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/README.md +0 -0
  7. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/__init__.py +0 -0
  8. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/api.py +0 -0
  9. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/config.py +0 -0
  10. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/__init__.py +0 -0
  11. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/alembic/README +0 -0
  12. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/alembic/env.py +0 -0
  13. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/alembic/script.py.mako +0 -0
  14. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/alembic/versions/2025_06_23_1748-f089dfb7e3ba_.py +0 -0
  15. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/alembic/versions/2025_06_24_1216-c62251b129ed_.py +0 -0
  16. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/alembic/versions/2025_06_24_1711-86457e2f333f_.py +0 -0
  17. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/alembic/versions/2025_06_25_1759-72aa496ca65b_.py +0 -0
  18. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/__init__.py +0 -0
  19. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/base.py +0 -0
  20. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/experiment.py +0 -0
  21. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/feature.py +0 -0
  22. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/feature_selection.py +0 -0
  23. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/feature_selection_rank.py +0 -0
  24. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/model.py +0 -0
  25. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/model_selection.py +0 -0
  26. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/model_training.py +0 -0
  27. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/score.py +0 -0
  28. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/target.py +0 -0
  29. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/models/utils.py +0 -0
  30. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/db/session.py +0 -0
  31. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/directories.py +0 -0
  32. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/experiment.py +0 -0
  33. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/feature_engineering.py +0 -0
  34. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/feature_selection.py +0 -0
  35. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/integrations/openai_integration.py +0 -0
  36. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/jobs/__init__.py +0 -0
  37. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/jobs/config.py +0 -0
  38. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/jobs/scheduler.py +0 -0
  39. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/jobs/tasks.py +0 -0
  40. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/misc/tabpfn_tests.ipynb +0 -0
  41. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/misc/test-gpu-bilstm.ipynb +0 -0
  42. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/misc/test-gpu-resnet.ipynb +0 -0
  43. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/misc/test-gpu-transformers.ipynb +0 -0
  44. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/search_space.py +0 -0
  45. {lecrapaud-0.16.2 → lecrapaud-0.16.4}/lecrapaud/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lecrapaud
3
- Version: 0.16.2
3
+ Version: 0.16.4
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
@@ -82,7 +82,7 @@ sqlalchemy.url = %(DATABASE_URL)s
82
82
 
83
83
  # Logging configuration
84
84
  [loggers]
85
- keys = root,sqlalchemy,alembic
85
+ keys = root,sqlalchemy,alembic,lecrapaud
86
86
 
87
87
  [loggers_root]
88
88
  disable_existing_loggers = False
@@ -108,6 +108,12 @@ level = INFO
108
108
  handlers =
109
109
  qualname = alembic
110
110
 
111
+ [logger_lecrapaud]
112
+ level = INFO
113
+ handlers = console
114
+ qualname = lecrapaud
115
+ propagate = 0
116
+
111
117
  [handler_console]
112
118
  class = StreamHandler
113
119
  args = (sys.stderr,)
@@ -883,7 +883,7 @@ class ModelSelectionEngine:
883
883
  model_best_params = json_dict[model_name]
884
884
  except Exception:
885
885
  raise FileNotFoundError(
886
- f"Could not find {model_name} in current data. Try to run an hyperoptimization by setting `perform_hyperopt` to true, pass `best_params`"
886
+ f"Could not find {model_name} in current data. Try to run an hyperoptimization by setting `perform_hyperopt` to true, or pass `best_params`"
887
887
  )
888
888
 
889
889
  # save best params
@@ -1133,6 +1133,27 @@ class ModelSelectionEngine:
1133
1133
 
1134
1134
  storage_path = f"{self.results_dir}/ray_results"
1135
1135
 
1136
+ # Initialize Ray with the runtime environment
1137
+ ray.init(
1138
+ runtime_env={
1139
+ "excludes": [
1140
+ ".git/**/*",
1141
+ "**/*.pyc",
1142
+ "**/__pycache__",
1143
+ "**/data/*",
1144
+ "**/notebooks/*",
1145
+ "**/tests/*",
1146
+ "**/docs/*",
1147
+ "**/.pytest_cache/*",
1148
+ "**/venv/*",
1149
+ "**/.venv/*",
1150
+ "**/build/*",
1151
+ "**/dist/*",
1152
+ "**/*.egg-info/*",
1153
+ ]
1154
+ }
1155
+ )
1156
+
1136
1157
  tuner = Tuner(
1137
1158
  trainable=with_parameters(
1138
1159
  trainable,
@@ -1162,23 +1183,6 @@ class ModelSelectionEngine:
1162
1183
  stop={"training_iteration": 100},
1163
1184
  storage_path=storage_path,
1164
1185
  callbacks=[TBXLoggerCallback()],
1165
- runtime_env={
1166
- "excludes": [
1167
- ".git/**/*",
1168
- "**/*.pyc",
1169
- "**/__pycache__",
1170
- "**/data/*",
1171
- "**/notebooks/*",
1172
- "**/tests/*",
1173
- "**/docs/*",
1174
- "**/.pytest_cache/*",
1175
- "**/venv/*",
1176
- "**/.venv/*",
1177
- "**/build/*",
1178
- "**/dist/*",
1179
- "**/*.egg-info/*",
1180
- ]
1181
- },
1182
1186
  ),
1183
1187
  )
1184
1188
  try:
@@ -1249,7 +1253,7 @@ class ModelSelectionEngine:
1249
1253
  try:
1250
1254
  with open(best_params_file, "r") as f:
1251
1255
  target_params = json.load(f)
1252
- all_best_params[target_number] = target_params
1256
+ all_best_params[int(target_number)] = target_params
1253
1257
  except Exception as e:
1254
1258
  logger.warning(
1255
1259
  f"Error loading best params for {target_dir}: {str(e)}"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lecrapaud"
3
- version = "0.16.2"
3
+ version = "0.16.4"
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
File without changes