lecrapaud 0.18.5__py3-none-any.whl → 0.18.7__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.
- lecrapaud/model_selection.py +1 -1
- lecrapaud/utils.py +1 -5
- {lecrapaud-0.18.5.dist-info → lecrapaud-0.18.7.dist-info}/METADATA +1 -1
- {lecrapaud-0.18.5.dist-info → lecrapaud-0.18.7.dist-info}/RECORD +6 -6
- {lecrapaud-0.18.5.dist-info → lecrapaud-0.18.7.dist-info}/LICENSE +0 -0
- {lecrapaud-0.18.5.dist-info → lecrapaud-0.18.7.dist-info}/WHEEL +0 -0
lecrapaud/model_selection.py
CHANGED
|
@@ -1852,7 +1852,7 @@ def apply_thresholds(
|
|
|
1852
1852
|
"""
|
|
1853
1853
|
|
|
1854
1854
|
# Case 1: Per-class thresholds
|
|
1855
|
-
if not isinstance(threshold, int):
|
|
1855
|
+
if not isinstance(threshold, (int, float)):
|
|
1856
1856
|
if isinstance(threshold, str):
|
|
1857
1857
|
threshold = ast.literal_eval(threshold)
|
|
1858
1858
|
class_predictions = []
|
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
|
|
@@ -37,10 +37,10 @@ lecrapaud/misc/tabpfn_tests.ipynb,sha256=VkgsCUJ30d8jaL2VaWtQAgb8ngHPNtPgnXLs7QQ
|
|
|
37
37
|
lecrapaud/misc/test-gpu-bilstm.ipynb,sha256=4nLuZRJVe2kn6kEmauhRiz5wkWT9AVrYhI9CEk_dYUY,9608
|
|
38
38
|
lecrapaud/misc/test-gpu-resnet.ipynb,sha256=27Vu7nYwujYeh3fOxBNCnKJn3MXNPKZU-U8oDDUbymg,4944
|
|
39
39
|
lecrapaud/misc/test-gpu-transformers.ipynb,sha256=k6MBSs_Um1h4PykvE-LTBcdpbWLbIFST_xl_AFW2jgI,8444
|
|
40
|
-
lecrapaud/model_selection.py,sha256=
|
|
40
|
+
lecrapaud/model_selection.py,sha256=gP7Jo_JyI7YVKNk7VG5DjGcheUZsir1vNnTlTCM-R40,72480
|
|
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.7.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
|
|
44
|
+
lecrapaud-0.18.7.dist-info/METADATA,sha256=nMJ_H2nwBRKvFFyac3d6T0s6eluunnDdiVZcdM6dnBI,11081
|
|
45
|
+
lecrapaud-0.18.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
46
|
+
lecrapaud-0.18.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|