dragon-ml-toolbox 12.10.0__py3-none-any.whl → 12.11.0__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 dragon-ml-toolbox might be problematic. Click here for more details.
- {dragon_ml_toolbox-12.10.0.dist-info → dragon_ml_toolbox-12.11.0.dist-info}/METADATA +1 -1
- {dragon_ml_toolbox-12.10.0.dist-info → dragon_ml_toolbox-12.11.0.dist-info}/RECORD +8 -8
- ml_tools/custom_logger.py +1 -1
- ml_tools/serde.py +5 -13
- {dragon_ml_toolbox-12.10.0.dist-info → dragon_ml_toolbox-12.11.0.dist-info}/WHEEL +0 -0
- {dragon_ml_toolbox-12.10.0.dist-info → dragon_ml_toolbox-12.11.0.dist-info}/licenses/LICENSE +0 -0
- {dragon_ml_toolbox-12.10.0.dist-info → dragon_ml_toolbox-12.11.0.dist-info}/licenses/LICENSE-THIRD-PARTY.md +0 -0
- {dragon_ml_toolbox-12.10.0.dist-info → dragon_ml_toolbox-12.11.0.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
dragon_ml_toolbox-12.
|
|
2
|
-
dragon_ml_toolbox-12.
|
|
1
|
+
dragon_ml_toolbox-12.11.0.dist-info/licenses/LICENSE,sha256=L35WDmmLZNTlJvxF6Vy7Uy4SYNi6rCfWUqlTHpoRMoU,1081
|
|
2
|
+
dragon_ml_toolbox-12.11.0.dist-info/licenses/LICENSE-THIRD-PARTY.md,sha256=iy2r_R7wjzsCbz_Q_jMsp_jfZ6oP8XW9QhwzRBH0mGY,1904
|
|
3
3
|
ml_tools/ETL_cleaning.py,sha256=2VBRllV8F-ZiPylPp8Az2gwn5ztgazN0BH5OKnRUhV0,20402
|
|
4
4
|
ml_tools/ETL_engineering.py,sha256=KfYqgsxupAx6e_TxwO1LZXeu5mFkIhVXJrNjP3CzIZc,54927
|
|
5
5
|
ml_tools/GUI_tools.py,sha256=Va6ig-dHULPVRwQYYtH3fvY5XPIoqRcJpRW8oXC55Hw,45413
|
|
@@ -23,7 +23,7 @@ ml_tools/__init__.py,sha256=q0y9faQ6e17XCQ7eUiCZ1FJ4Bg5EQqLjZ9f_l5REUUY,41
|
|
|
23
23
|
ml_tools/_logger.py,sha256=dlp5cGbzooK9YSNSZYB4yjZrOaQUGW8PTrM411AOvL8,4717
|
|
24
24
|
ml_tools/_script_info.py,sha256=21r83LV3RubsNZ_RTEUON6RbDf7Mh4_udweNcvdF_Fk,212
|
|
25
25
|
ml_tools/constants.py,sha256=3br5Rk9cL2IUo638eJuMOGdbGQaWssaUecYEvSeRBLM,3322
|
|
26
|
-
ml_tools/custom_logger.py,sha256=
|
|
26
|
+
ml_tools/custom_logger.py,sha256=7tSAgRL7e-Ekm7rS1FLDocaPLCnaoKc7VSrtfwCtCEg,10067
|
|
27
27
|
ml_tools/data_exploration.py,sha256=haddQFsXAWzuf84NLItcZ4Q7vzN3YWjFoh7lPlWUczo,50679
|
|
28
28
|
ml_tools/ensemble_evaluation.py,sha256=FGHSe8LBI8_w8LjNeJWOcYQ1UK_mc6fVah8gmSvNVGg,26853
|
|
29
29
|
ml_tools/ensemble_inference.py,sha256=0yLmLNj45RVVoSCLH1ZYJG9IoAhTkWUqEZmLOQTFGTY,9348
|
|
@@ -33,9 +33,9 @@ ml_tools/keys.py,sha256=FDpbS3Jb0pjrVvvp2_8nZi919mbob_-xwuy5OOtKM_A,1848
|
|
|
33
33
|
ml_tools/math_utilities.py,sha256=PxoOrnuj6Ntp7_TJqyDWi0JX03WpAO5iaFNK2Oeq5I4,8800
|
|
34
34
|
ml_tools/optimization_tools.py,sha256=P074YCuZzkqkONnAsM-Zb9DTX_i8cRkkJLpwAWz6CRw,13521
|
|
35
35
|
ml_tools/path_manager.py,sha256=CyDU16pOKmC82jPubqJPT6EBt-u-3rGVbxyPIZCvDDY,18432
|
|
36
|
-
ml_tools/serde.py,sha256=
|
|
36
|
+
ml_tools/serde.py,sha256=ll2mVC0sO2jIEdG3K6xMcgEN13N4YSb8VjviGvw_ers,4949
|
|
37
37
|
ml_tools/utilities.py,sha256=OcAyV1tEcYAfOWlGjRgopsjDLxU3DcI5EynzvWV4q3A,15754
|
|
38
|
-
dragon_ml_toolbox-12.
|
|
39
|
-
dragon_ml_toolbox-12.
|
|
40
|
-
dragon_ml_toolbox-12.
|
|
41
|
-
dragon_ml_toolbox-12.
|
|
38
|
+
dragon_ml_toolbox-12.11.0.dist-info/METADATA,sha256=VOs19HzZ0j8xvEuKO9sIMDCGIPPQA22x3Lnh2H9Mw9c,6167
|
|
39
|
+
dragon_ml_toolbox-12.11.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
40
|
+
dragon_ml_toolbox-12.11.0.dist-info/top_level.txt,sha256=wm-oxax3ciyez6VoO4zsFd-gSok2VipYXnbg3TH9PtU,9
|
|
41
|
+
dragon_ml_toolbox-12.11.0.dist-info/RECORD,,
|
ml_tools/custom_logger.py
CHANGED
|
@@ -221,7 +221,7 @@ def compare_lists(
|
|
|
221
221
|
- If True: Compares only the `type()` of the items.
|
|
222
222
|
|
|
223
223
|
Returns:
|
|
224
|
-
A dictionary detailing the differences. (saved to `save_dir`).
|
|
224
|
+
dict: A dictionary detailing the differences. (saved to `save_dir`).
|
|
225
225
|
"""
|
|
226
226
|
MISSING_A_KEY = "missing_in_A"
|
|
227
227
|
MISSING_B_KEY = "missing_in_B"
|
ml_tools/serde.py
CHANGED
|
@@ -83,8 +83,7 @@ def deserialize_object(
|
|
|
83
83
|
filepath: Union[str, Path],
|
|
84
84
|
expected_type: Optional[Type[T]] = None,
|
|
85
85
|
verbose: bool = True,
|
|
86
|
-
|
|
87
|
-
) -> Optional[T]:
|
|
86
|
+
) -> T:
|
|
88
87
|
"""
|
|
89
88
|
Loads a serialized object from a .joblib file.
|
|
90
89
|
|
|
@@ -96,22 +95,17 @@ def deserialize_object(
|
|
|
96
95
|
like `list[str]` by checking the base type (e.g., `list`).
|
|
97
96
|
Defaults to None, which skips the type check.
|
|
98
97
|
verbose (bool): If True, logs success messages.
|
|
99
|
-
raise_on_error (bool): If True, raises exceptions on errors. If False, returns None instead.
|
|
100
98
|
|
|
101
99
|
Returns:
|
|
102
|
-
(Any
|
|
103
|
-
`expected_type` if provided. Returns None if an error
|
|
104
|
-
occurs and `raise_on_error` is False.
|
|
100
|
+
(Any): The deserialized Python object, which will match the `expected_type` if provided.
|
|
105
101
|
"""
|
|
106
|
-
true_filepath = make_fullpath(filepath)
|
|
102
|
+
true_filepath = make_fullpath(filepath, enforce="file")
|
|
107
103
|
|
|
108
104
|
try:
|
|
109
105
|
obj = joblib.load(true_filepath)
|
|
110
106
|
except (IOError, OSError, EOFError, TypeError, ValueError) as e:
|
|
111
107
|
_LOGGER.error(f"Failed to deserialize object from '{true_filepath}'.")
|
|
112
|
-
|
|
113
|
-
raise e
|
|
114
|
-
return None
|
|
108
|
+
raise e
|
|
115
109
|
else:
|
|
116
110
|
# --- Type Validation Step ---
|
|
117
111
|
if expected_type:
|
|
@@ -126,9 +120,7 @@ def deserialize_object(
|
|
|
126
120
|
f"but found '{type(obj)}' in '{true_filepath}'."
|
|
127
121
|
)
|
|
128
122
|
_LOGGER.error(error_msg)
|
|
129
|
-
|
|
130
|
-
raise TypeError()
|
|
131
|
-
return None
|
|
123
|
+
raise TypeError()
|
|
132
124
|
|
|
133
125
|
if verbose:
|
|
134
126
|
_LOGGER.info(f"Loaded object of type '{type(obj)}' from '{true_filepath}'.")
|
|
File without changes
|
{dragon_ml_toolbox-12.10.0.dist-info → dragon_ml_toolbox-12.11.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|