lecrapaud 0.16.2__py3-none-any.whl → 0.16.4__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/db/alembic.ini CHANGED
@@ -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
  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
@@ -9,7 +9,7 @@ lecrapaud/db/alembic/versions/2025_06_23_1748-f089dfb7e3ba_.py,sha256=hyPW0Mt_B4
9
9
  lecrapaud/db/alembic/versions/2025_06_24_1216-c62251b129ed_.py,sha256=6Pf36HAXEVrVlnrohAe2O7gVaXpDiv3LLIP_EEgTyA0,917
10
10
  lecrapaud/db/alembic/versions/2025_06_24_1711-86457e2f333f_.py,sha256=KjwjYvFaNqYmBLTYel8As37fyaBtNVWTqN_3M7y_2eI,1357
11
11
  lecrapaud/db/alembic/versions/2025_06_25_1759-72aa496ca65b_.py,sha256=MiqooJuZ1etExl2he3MniaEv8G0LrmqY-0m22m9xKmc,943
12
- lecrapaud/db/alembic.ini,sha256=TXrZB4pWVLn2EUg867yp6paA_19vGeirO95mTPA3nbs,3699
12
+ lecrapaud/db/alembic.ini,sha256=Zw2rdwsKV6c7J1SPtoFIPDX08_oTP3MuUKnNxBDiY8I,3796
13
13
  lecrapaud/db/models/__init__.py,sha256=Lhyw9fVLdom0Fc6yIP-ip8FjkU1EwVwjae5q2VM815Q,740
14
14
  lecrapaud/db/models/base.py,sha256=J9ew-0z_-tnWAwhVvOmVDys2R6jPF_oSca_ny6wpXQE,7606
15
15
  lecrapaud/db/models/experiment.py,sha256=mQmbp_LzwMYVLzwYlaoRWYgzZCSJCA9dDcLpuvddsms,10931
@@ -36,10 +36,10 @@ lecrapaud/misc/tabpfn_tests.ipynb,sha256=VkgsCUJ30d8jaL2VaWtQAgb8ngHPNtPgnXLs7QQ
36
36
  lecrapaud/misc/test-gpu-bilstm.ipynb,sha256=4nLuZRJVe2kn6kEmauhRiz5wkWT9AVrYhI9CEk_dYUY,9608
37
37
  lecrapaud/misc/test-gpu-resnet.ipynb,sha256=27Vu7nYwujYeh3fOxBNCnKJn3MXNPKZU-U8oDDUbymg,4944
38
38
  lecrapaud/misc/test-gpu-transformers.ipynb,sha256=k6MBSs_Um1h4PykvE-LTBcdpbWLbIFST_xl_AFW2jgI,8444
39
- lecrapaud/model_selection.py,sha256=dz9gRLUEkaOFo8EneS6t7GJRSJXKyWmbbYRRulIKE1Q,68492
39
+ lecrapaud/model_selection.py,sha256=tjBM9X5CP02pNiuNLdNK2MFZblrH7w-gQgBc5FEN-TY,68514
40
40
  lecrapaud/search_space.py,sha256=-JkzuMhaomdwiWi4HvVQY5hiw3-oREemJA16tbwEIp4,34854
41
41
  lecrapaud/utils.py,sha256=JdBB1NvbNIx4y0Una-kSZdo1_ZEocc5hwyYFIZKHmGg,8305
42
- lecrapaud-0.16.2.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
43
- lecrapaud-0.16.2.dist-info/METADATA,sha256=TPKjiK_wQekvDhTXf8XXg_TtkIRdizJoJcawSmdrfQY,11081
44
- lecrapaud-0.16.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
45
- lecrapaud-0.16.2.dist-info/RECORD,,
42
+ lecrapaud-0.16.4.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
43
+ lecrapaud-0.16.4.dist-info/METADATA,sha256=cJJFa99bkNUUq21Tyn1ykT9vMzqMXzQ-iVgcm-mcM3k,11081
44
+ lecrapaud-0.16.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
45
+ lecrapaud-0.16.4.dist-info/RECORD,,