lecrapaud 0.18.4__py3-none-any.whl → 0.18.6__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/api.py +4 -3
- lecrapaud/utils.py +1 -5
- {lecrapaud-0.18.4.dist-info → lecrapaud-0.18.6.dist-info}/METADATA +1 -1
- {lecrapaud-0.18.4.dist-info → lecrapaud-0.18.6.dist-info}/RECORD +6 -6
- {lecrapaud-0.18.4.dist-info → lecrapaud-0.18.6.dist-info}/LICENSE +0 -0
- {lecrapaud-0.18.4.dist-info → lecrapaud-0.18.6.dist-info}/WHEEL +0 -0
lecrapaud/api.py
CHANGED
|
@@ -96,9 +96,10 @@ class LeCrapaud:
|
|
|
96
96
|
self, name: str, metric: str = "both", **kwargs
|
|
97
97
|
) -> "ExperimentEngine":
|
|
98
98
|
"""Retrieve the best experiment by score."""
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
best_exp = Experiment.get_best_by_score(name=name, metric=metric)
|
|
100
|
+
if not best_exp:
|
|
101
|
+
return None
|
|
102
|
+
return ExperimentEngine(id=best_exp.id, **kwargs)
|
|
102
103
|
|
|
103
104
|
def compare_experiment_scores(self, name: str):
|
|
104
105
|
"""Compare scores of experiments with matching names.
|
lecrapaud/utils.py
CHANGED
|
@@ -9,8 +9,6 @@ from ftfy import fix_text
|
|
|
9
9
|
import unicodedata
|
|
10
10
|
import re
|
|
11
11
|
import string
|
|
12
|
-
import sys
|
|
13
|
-
import tomllib
|
|
14
12
|
|
|
15
13
|
from lecrapaud.directories import logger_dir
|
|
16
14
|
from lecrapaud.config import LOGGING_LEVEL, PYTHON_ENV, LECRAPAUD_LOCAL
|
|
@@ -21,9 +19,7 @@ _LECRAPAUD_LOGGER_ALREADY_CONFIGURED = False
|
|
|
21
19
|
|
|
22
20
|
def setup_logger():
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
pyproject_data = tomllib.load(f)
|
|
26
|
-
name = pyproject_data["project"]["name"]
|
|
22
|
+
name = "lecrapaud"
|
|
27
23
|
|
|
28
24
|
global _LECRAPAUD_LOGGER_ALREADY_CONFIGURED
|
|
29
25
|
if _LECRAPAUD_LOGGER_ALREADY_CONFIGURED: # ← bail out if done before
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
lecrapaud/__init__.py,sha256=oCxbtw_nk8rlOXbXbWo0RRMlsh6w-hTiZ6e5PRG_wp0,28
|
|
2
|
-
lecrapaud/api.py,sha256=
|
|
2
|
+
lecrapaud/api.py,sha256=GsylHdScug-D8ePbPKo5r7Wa0myj9Ol0OqNwlNsbgs8,22518
|
|
3
3
|
lecrapaud/config.py,sha256=itiqC31HB8i2Xo-kn2viCQrg_9tnA07-TJuZ-xdnx44,1126
|
|
4
4
|
lecrapaud/db/__init__.py,sha256=82o9fMfaqKXPh2_rt44EzNRVZV1R4LScEnQYvj_TjK0,34
|
|
5
5
|
lecrapaud/db/alembic/README,sha256=MVlc9TYmr57RbhXET6QxgyCcwWP7w-vLkEsirENqiIQ,38
|
|
@@ -39,8 +39,8 @@ lecrapaud/misc/test-gpu-resnet.ipynb,sha256=27Vu7nYwujYeh3fOxBNCnKJn3MXNPKZU-U8o
|
|
|
39
39
|
lecrapaud/misc/test-gpu-transformers.ipynb,sha256=k6MBSs_Um1h4PykvE-LTBcdpbWLbIFST_xl_AFW2jgI,8444
|
|
40
40
|
lecrapaud/model_selection.py,sha256=WbFn4wiykD8DOJ_7OsZLoocp-q4GDzW0dXCf-hHhl74,72471
|
|
41
41
|
lecrapaud/search_space.py,sha256=-JkzuMhaomdwiWi4HvVQY5hiw3-oREemJA16tbwEIp4,34854
|
|
42
|
-
lecrapaud/utils.py,sha256=
|
|
43
|
-
lecrapaud-0.18.
|
|
44
|
-
lecrapaud-0.18.
|
|
45
|
-
lecrapaud-0.18.
|
|
46
|
-
lecrapaud-0.18.
|
|
42
|
+
lecrapaud/utils.py,sha256=ATKu9pbXjYFRa2YzBYjqyLHJrzfnZ7SJrOD_qAnEBYE,8242
|
|
43
|
+
lecrapaud-0.18.6.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
|
|
44
|
+
lecrapaud-0.18.6.dist-info/METADATA,sha256=O0TfFUeorY6Pt-cGn_wN7ZJ6mGt6BS6_iLn2UN4w2Ok,11081
|
|
45
|
+
lecrapaud-0.18.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
46
|
+
lecrapaud-0.18.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|