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.
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/PKG-INFO +1 -1
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/api.py +3 -4
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/experiment.py +0 -1
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/model_selection.py +23 -2
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/pyproject.toml +1 -1
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/LICENSE +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/README.md +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/__init__.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/config.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/__init__.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/README +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/env.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/script.py.mako +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_23_1748-f089dfb7e3ba_.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_24_1216-c62251b129ed_.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_24_1711-86457e2f333f_.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_25_1759-72aa496ca65b_.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic.ini +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/__init__.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/base.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/experiment.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/feature.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/feature_selection.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/feature_selection_rank.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/model.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/model_selection.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/model_training.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/score.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/target.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/models/utils.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/session.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/directories.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/feature_engineering.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/feature_selection.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/integrations/openai_integration.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/jobs/__init__.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/jobs/config.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/jobs/scheduler.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/jobs/tasks.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/misc/tabpfn_tests.ipynb +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/misc/test-gpu-bilstm.ipynb +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/misc/test-gpu-resnet.ipynb +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/misc/test-gpu-transformers.ipynb +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/search_space.py +0 -0
- {lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/utils.py +0 -0
|
@@ -88,7 +88,7 @@ class LeCrapaud:
|
|
|
88
88
|
"""
|
|
89
89
|
return ExperimentEngine(id=id, **kwargs)
|
|
90
90
|
|
|
91
|
-
def
|
|
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
|
-
|
|
490
|
+
print(f"Class {class_label}:")
|
|
492
491
|
plot_threshold(tmp_pred, threshold, precision, recall)
|
|
493
492
|
else:
|
|
494
|
-
|
|
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
|
-
|
|
1813
|
+
print(
|
|
1793
1814
|
f"""Threshold: {threshold*100:.2f}
|
|
1794
1815
|
Precision: {precision*100:.2f}
|
|
1795
1816
|
Recall: {recall*100:.2f}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_23_1748-f089dfb7e3ba_.py
RENAMED
|
File without changes
|
{lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_24_1216-c62251b129ed_.py
RENAMED
|
File without changes
|
{lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_24_1711-86457e2f333f_.py
RENAMED
|
File without changes
|
{lecrapaud-0.16.1 → lecrapaud-0.16.3}/lecrapaud/db/alembic/versions/2025_06_25_1759-72aa496ca65b_.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|