lecrapaud 0.16.1__tar.gz → 0.16.3__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.1 → lecrapaud-0.16.3}/PKG-INFO +1 -1
  2. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/api.py +3 -4
  3. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/experiment.py +0 -1
  4. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/model_selection.py +23 -2
  5. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/pyproject.toml +1 -1
  6. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/LICENSE +0 -0
  7. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/README.md +0 -0
  8. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/__init__.py +0 -0
  9. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/config.py +0 -0
  10. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/__init__.py +0 -0
  11. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/README +0 -0
  12. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/env.py +0 -0
  13. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/script.py.mako +0 -0
  14. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_23_1748-f089dfb7e3ba_.py +0 -0
  15. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_24_1216-c62251b129ed_.py +0 -0
  16. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_24_1711-86457e2f333f_.py +0 -0
  17. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_25_1759-72aa496ca65b_.py +0 -0
  18. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic.ini +0 -0
  19. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/__init__.py +0 -0
  20. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/base.py +0 -0
  21. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/experiment.py +0 -0
  22. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/feature.py +0 -0
  23. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/feature_selection.py +0 -0
  24. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/feature_selection_rank.py +0 -0
  25. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/model.py +0 -0
  26. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/model_selection.py +0 -0
  27. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/model_training.py +0 -0
  28. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/score.py +0 -0
  29. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/target.py +0 -0
  30. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/utils.py +0 -0
  31. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/session.py +0 -0
  32. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/directories.py +0 -0
  33. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/feature_engineering.py +0 -0
  34. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/feature_selection.py +0 -0
  35. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/integrations/openai_integration.py +0 -0
  36. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/jobs/__init__.py +0 -0
  37. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/jobs/config.py +0 -0
  38. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/jobs/scheduler.py +0 -0
  39. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/jobs/tasks.py +0 -0
  40. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/misc/tabpfn_tests.ipynb +0 -0
  41. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/misc/test-gpu-bilstm.ipynb +0 -0
  42. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/misc/test-gpu-resnet.ipynb +0 -0
  43. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/misc/test-gpu-transformers.ipynb +0 -0
  44. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/search_space.py +0 -0
  45. {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lecrapaud
3
- Version: 0.16.1
3
+ Version: 0.16.3
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
@@ -88,7 +88,7 @@ class LeCrapaud:
88
88
  """
89
89
  return ExperimentEngine(id=id, **kwargs)
90
90
 
91
- def get_last_experiement_by_name(self, name: str, **kwargs) -> "ExperimentEngine":
91
+ def get_last_experiment_by_name(self, name: str, **kwargs) -> "ExperimentEngine":
92
92
  """Retrieve the last experiment by name."""
93
93
  return ExperimentEngine(id=Experiment.get_last_by_name(name).id, **kwargs)
94
94
 
@@ -131,7 +131,6 @@ class ExperimentEngine:
131
131
  experiment_dir = f"{tmp_dir}/{self.experiment.name}"
132
132
  preprocessing_dir = f"{experiment_dir}/preprocessing"
133
133
  data_dir = f"{experiment_dir}/data"
134
- os.makedirs(experiment_dir, exist_ok=True)
135
134
  os.makedirs(preprocessing_dir, exist_ok=True)
136
135
  os.makedirs(data_dir, exist_ok=True)
137
136
  else:
@@ -488,10 +487,10 @@ class ExperimentEngine:
488
487
  if threshold is not None:
489
488
  tmp_pred = prediction[["TARGET", "PRED", class_label]].copy()
490
489
  tmp_pred.rename(columns={class_label: 1}, inplace=True)
491
- logger.info(f"Class {class_label}:")
490
+ print(f"Class {class_label}:")
492
491
  plot_threshold(tmp_pred, threshold, precision, recall)
493
492
  else:
494
- logger.info(f"No threshold found for class {class_label}")
493
+ print(f"No threshold found for class {class_label}")
495
494
 
496
495
  def get_best_params(self, target_number: int = None) -> dict:
497
496
  """
@@ -47,7 +47,6 @@ def create_experiment(
47
47
  experiment_dir = f"{tmp_dir}/{experiment_name}"
48
48
  preprocessing_dir = f"{experiment_dir}/preprocessing"
49
49
  data_dir = f"{experiment_dir}/data"
50
- os.makedirs(experiment_dir, exist_ok=True)
51
50
  os.makedirs(preprocessing_dir, exist_ok=True)
52
51
  os.makedirs(data_dir, exist_ok=True)
53
52
 
@@ -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,
@@ -1789,7 +1810,7 @@ def plot_threshold(prediction, threshold, precision, recall):
1789
1810
  per_predicted_positive = predicted_positive / len(y_pred_proba)
1790
1811
  per_predicted_negative = predicted_negative / len(y_pred_proba)
1791
1812
 
1792
- logger.info(
1813
+ print(
1793
1814
  f"""Threshold: {threshold*100:.2f}
1794
1815
  Precision: {precision*100:.2f}
1795
1816
  Recall: {recall*100:.2f}
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lecrapaud"
3
- version = "0.16.1"
3
+ version = "0.16.3"
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