dragon-ml-toolbox 13.2.0__py3-none-any.whl → 13.2.1__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dragon-ml-toolbox
3
- Version: 13.2.0
3
+ Version: 13.2.1
4
4
  Summary: A collection of tools for data science and machine learning projects.
5
5
  Author-email: "Karl L. Loza Vidaurre" <luigiloza@gmail.com>
6
6
  License-Expression: MIT
@@ -1,5 +1,5 @@
1
- dragon_ml_toolbox-13.2.0.dist-info/licenses/LICENSE,sha256=L35WDmmLZNTlJvxF6Vy7Uy4SYNi6rCfWUqlTHpoRMoU,1081
2
- dragon_ml_toolbox-13.2.0.dist-info/licenses/LICENSE-THIRD-PARTY.md,sha256=iy2r_R7wjzsCbz_Q_jMsp_jfZ6oP8XW9QhwzRBH0mGY,1904
1
+ dragon_ml_toolbox-13.2.1.dist-info/licenses/LICENSE,sha256=L35WDmmLZNTlJvxF6Vy7Uy4SYNi6rCfWUqlTHpoRMoU,1081
2
+ dragon_ml_toolbox-13.2.1.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
@@ -20,7 +20,7 @@ ml_tools/SQL.py,sha256=vXLPGfVVg8bfkbBE3HVfyEclVbdJy0TBhuQONtMwSCQ,11234
20
20
  ml_tools/VIF_factor.py,sha256=at5IVqPvicja2-DNSTSIIy3SkzDWCmLzo3qTG_qr5n8,10422
21
21
  ml_tools/__init__.py,sha256=kJiankjz9_qXu7gU92mYqYg_anLvt-B6RtW0mMH8uGo,76
22
22
  ml_tools/_logger.py,sha256=dlp5cGbzooK9YSNSZYB4yjZrOaQUGW8PTrM411AOvL8,4717
23
- ml_tools/_schema.py,sha256=MloQLJvuYzWHbmHfp0rUx5vgTPdfusfQ1b83KY277bY,2767
23
+ ml_tools/_schema.py,sha256=3I47orRDc-eB8KbgcIM66pDQycKtOLhCfDSrUN6aiyE,3379
24
24
  ml_tools/_script_info.py,sha256=21r83LV3RubsNZ_RTEUON6RbDf7Mh4_udweNcvdF_Fk,212
25
25
  ml_tools/constants.py,sha256=3br5Rk9cL2IUo638eJuMOGdbGQaWssaUecYEvSeRBLM,3322
26
26
  ml_tools/custom_logger.py,sha256=7tSAgRL7e-Ekm7rS1FLDocaPLCnaoKc7VSrtfwCtCEg,10067
@@ -35,7 +35,7 @@ ml_tools/optimization_tools.py,sha256=TYFQ2nSnp7xxs-VyoZISWgnGJghFbsWasHjruegyJR
35
35
  ml_tools/path_manager.py,sha256=CyDU16pOKmC82jPubqJPT6EBt-u-3rGVbxyPIZCvDDY,18432
36
36
  ml_tools/serde.py,sha256=IHXHS2XwpEe5Y8mdWvR2SAykOriB8CysDuD70SvtikQ,6223
37
37
  ml_tools/utilities.py,sha256=OcAyV1tEcYAfOWlGjRgopsjDLxU3DcI5EynzvWV4q3A,15754
38
- dragon_ml_toolbox-13.2.0.dist-info/METADATA,sha256=NzCUzaOdHUWqWZ7B96xs-rywNbalnz5MAlduLaowvX8,6166
39
- dragon_ml_toolbox-13.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
- dragon_ml_toolbox-13.2.0.dist-info/top_level.txt,sha256=wm-oxax3ciyez6VoO4zsFd-gSok2VipYXnbg3TH9PtU,9
41
- dragon_ml_toolbox-13.2.0.dist-info/RECORD,,
38
+ dragon_ml_toolbox-13.2.1.dist-info/METADATA,sha256=s7aItjo_RmtxCzOs5Zi0yCtPKhTP2AiqT9EoWT31GPs,6166
39
+ dragon_ml_toolbox-13.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
+ dragon_ml_toolbox-13.2.1.dist-info/top_level.txt,sha256=wm-oxax3ciyez6VoO4zsFd-gSok2VipYXnbg3TH9PtU,9
41
+ dragon_ml_toolbox-13.2.1.dist-info/RECORD,,
ml_tools/_schema.py CHANGED
@@ -3,6 +3,7 @@ from pathlib import Path
3
3
 
4
4
  from .custom_logger import save_list_strings
5
5
  from .keys import DatasetKeys
6
+ from ._logger import _LOGGER
6
7
 
7
8
 
8
9
  class FeatureSchema(NamedTuple):
@@ -25,6 +26,12 @@ class FeatureSchema(NamedTuple):
25
26
 
26
27
  def _save_helper(self, artifact: Tuple[str, ...], directory: Union[str,Path], filename: str, verbose: bool):
27
28
  to_save = list(artifact)
29
+
30
+ # empty check
31
+ if not to_save:
32
+ _LOGGER.warning(f"Skipping save for '{filename}': The feature list is empty.")
33
+ return
34
+
28
35
  save_list_strings(list_strings=to_save,
29
36
  directory=directory,
30
37
  filename=filename,
@@ -68,3 +75,11 @@ class FeatureSchema(NamedTuple):
68
75
  directory=directory,
69
76
  filename=DatasetKeys.CATEGORICAL_NAMES,
70
77
  verbose=verbose)
78
+
79
+ def save_artifacts(self, directory: Union[str,Path]):
80
+ """
81
+ Saves feature names, categorical feature names, continuous feature names to separate text files.
82
+ """
83
+ self.save_all_features(directory=directory, verbose=True)
84
+ self.save_continuous_features(directory=directory, verbose=True)
85
+ self.save_categorical_features(directory=directory, verbose=True)