dragon-ml-toolbox 2.3.0__tar.gz → 3.0.0__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 dragon-ml-toolbox might be problematic. Click here for more details.
- {dragon_ml_toolbox-2.3.0/dragon_ml_toolbox.egg-info → dragon_ml_toolbox-3.0.0}/PKG-INFO +26 -9
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/README.md +22 -7
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0/dragon_ml_toolbox.egg-info}/PKG-INFO +26 -9
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/dragon_ml_toolbox.egg-info/SOURCES.txt +8 -4
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/dragon_ml_toolbox.egg-info/requires.txt +3 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/ml_tools/ETL_engineering.py +8 -7
- dragon_ml_toolbox-3.0.0/ml_tools/GUI_tools.py +495 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/ml_tools/MICE_imputation.py +8 -4
- dragon_ml_toolbox-3.0.0/ml_tools/ML_callbacks.py +341 -0
- dragon_ml_toolbox-3.0.0/ml_tools/ML_evaluation.py +255 -0
- dragon_ml_toolbox-3.0.0/ml_tools/ML_trainer.py +344 -0
- dragon_ml_toolbox-3.0.0/ml_tools/ML_tutorial.py +300 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/ml_tools/PSO_optimization.py +27 -20
- dragon_ml_toolbox-3.0.0/ml_tools/RNN_forecast.py +49 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/ml_tools/VIF_factor.py +6 -5
- dragon_ml_toolbox-3.0.0/ml_tools/datasetmaster.py +681 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/ml_tools/ensemble_learning.py +12 -9
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/ml_tools/handle_excel.py +9 -10
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/ml_tools/logger.py +45 -8
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/ml_tools/utilities.py +18 -1
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/pyproject.toml +6 -2
- dragon_ml_toolbox-2.3.0/ml_tools/datasetmaster.py +0 -607
- dragon_ml_toolbox-2.3.0/ml_tools/trainer.py +0 -346
- dragon_ml_toolbox-2.3.0/ml_tools/vision_helpers.py +0 -231
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/LICENSE +0 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/LICENSE-THIRD-PARTY.md +0 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/dragon_ml_toolbox.egg-info/dependency_links.txt +0 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/dragon_ml_toolbox.egg-info/top_level.txt +0 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/ml_tools/__init__.py +0 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/ml_tools/_particle_swarm_optimization.py +0 -0
- /dragon_ml_toolbox-2.3.0/ml_tools/pytorch_models.py → /dragon_ml_toolbox-3.0.0/ml_tools/_pytorch_models.py +0 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/ml_tools/data_exploration.py +0 -0
- {dragon_ml_toolbox-2.3.0 → dragon_ml_toolbox-3.0.0}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dragon-ml-toolbox
|
|
3
|
-
Version:
|
|
4
|
-
Summary: A collection of tools for data science and machine learning projects
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: A collection of tools for data science and machine learning projects.
|
|
5
5
|
Author-email: Karl Loza <luigiloza@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/DrAg0n-BoRn/ML_tools
|
|
@@ -37,9 +37,11 @@ Requires-Dist: Pillow
|
|
|
37
37
|
Provides-Extra: pytorch
|
|
38
38
|
Requires-Dist: torch; extra == "pytorch"
|
|
39
39
|
Requires-Dist: torchvision; extra == "pytorch"
|
|
40
|
+
Provides-Extra: gui
|
|
41
|
+
Requires-Dist: FreeSimpleGUI>=5.2; extra == "gui"
|
|
40
42
|
Dynamic: license-file
|
|
41
43
|
|
|
42
|
-
# dragon-ml-
|
|
44
|
+
# dragon-ml-toolbox
|
|
43
45
|
|
|
44
46
|
A collection of Python utilities for data science and machine learning, structured as a modular package for easy reuse and installation.
|
|
45
47
|
|
|
@@ -57,7 +59,7 @@ A collection of Python utilities for data science and machine learning, structur
|
|
|
57
59
|
Install the latest stable release from PyPI:
|
|
58
60
|
|
|
59
61
|
```bash
|
|
60
|
-
pip install dragon-ml-
|
|
62
|
+
pip install dragon-ml-toolbox
|
|
61
63
|
```
|
|
62
64
|
|
|
63
65
|
### Via GitHub (Editable)
|
|
@@ -77,16 +79,26 @@ Install from the conda-forge channel:
|
|
|
77
79
|
```bash
|
|
78
80
|
conda install -c conda-forge dragon-ml-toolbox
|
|
79
81
|
```
|
|
80
|
-
**Note:** This version is outdated or broken due to dependency incompatibilities.
|
|
82
|
+
**Note:** This version is outdated or broken due to dependency incompatibilities. Use PyPi instead.
|
|
81
83
|
|
|
82
84
|
## Optional dependencies
|
|
83
85
|
|
|
84
|
-
|
|
86
|
+
### FreeSimpleGUI
|
|
87
|
+
|
|
88
|
+
Wrapper library used to build powerful GUIs. Requires the tkinter backend.
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
pip install dragon-ml-toolbox[gui]
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### PyTorch
|
|
95
|
+
|
|
96
|
+
Different builds available depending on the **platform** and **hardware acceleration** (e.g., CUDA for NVIDIA GPUs on Linux/Windows, or MPS for Apple Silicon on macOS).
|
|
85
97
|
|
|
86
98
|
Install the default CPU-only version with
|
|
87
99
|
|
|
88
100
|
```bash
|
|
89
|
-
pip install dragon-ml-
|
|
101
|
+
pip install dragon-ml-toolbox[pytorch]
|
|
90
102
|
```
|
|
91
103
|
|
|
92
104
|
To make use of GPU acceleration use the official PyTorch installation instructions:
|
|
@@ -108,12 +120,17 @@ from ml_tools.logger import custom_logger
|
|
|
108
120
|
data_exploration
|
|
109
121
|
datasetmaster
|
|
110
122
|
ensemble_learning
|
|
123
|
+
ETL_engineering
|
|
124
|
+
GUI_tools
|
|
111
125
|
handle_excel
|
|
112
126
|
logger
|
|
113
127
|
MICE_imputation
|
|
128
|
+
ML_callbacks
|
|
129
|
+
ML_evaluation
|
|
130
|
+
ML_trainer
|
|
131
|
+
ML_tutorial
|
|
114
132
|
PSO_optimization
|
|
115
|
-
|
|
133
|
+
RNN_forecast
|
|
116
134
|
utilities
|
|
117
135
|
VIF_factor
|
|
118
|
-
vision_helpers
|
|
119
136
|
```
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# dragon-ml-
|
|
1
|
+
# dragon-ml-toolbox
|
|
2
2
|
|
|
3
3
|
A collection of Python utilities for data science and machine learning, structured as a modular package for easy reuse and installation.
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@ A collection of Python utilities for data science and machine learning, structur
|
|
|
16
16
|
Install the latest stable release from PyPI:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
pip install dragon-ml-
|
|
19
|
+
pip install dragon-ml-toolbox
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
### Via GitHub (Editable)
|
|
@@ -36,16 +36,26 @@ Install from the conda-forge channel:
|
|
|
36
36
|
```bash
|
|
37
37
|
conda install -c conda-forge dragon-ml-toolbox
|
|
38
38
|
```
|
|
39
|
-
**Note:** This version is outdated or broken due to dependency incompatibilities.
|
|
39
|
+
**Note:** This version is outdated or broken due to dependency incompatibilities. Use PyPi instead.
|
|
40
40
|
|
|
41
41
|
## Optional dependencies
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
### FreeSimpleGUI
|
|
44
|
+
|
|
45
|
+
Wrapper library used to build powerful GUIs. Requires the tkinter backend.
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
pip install dragon-ml-toolbox[gui]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### PyTorch
|
|
52
|
+
|
|
53
|
+
Different builds available depending on the **platform** and **hardware acceleration** (e.g., CUDA for NVIDIA GPUs on Linux/Windows, or MPS for Apple Silicon on macOS).
|
|
44
54
|
|
|
45
55
|
Install the default CPU-only version with
|
|
46
56
|
|
|
47
57
|
```bash
|
|
48
|
-
pip install dragon-ml-
|
|
58
|
+
pip install dragon-ml-toolbox[pytorch]
|
|
49
59
|
```
|
|
50
60
|
|
|
51
61
|
To make use of GPU acceleration use the official PyTorch installation instructions:
|
|
@@ -67,12 +77,17 @@ from ml_tools.logger import custom_logger
|
|
|
67
77
|
data_exploration
|
|
68
78
|
datasetmaster
|
|
69
79
|
ensemble_learning
|
|
80
|
+
ETL_engineering
|
|
81
|
+
GUI_tools
|
|
70
82
|
handle_excel
|
|
71
83
|
logger
|
|
72
84
|
MICE_imputation
|
|
85
|
+
ML_callbacks
|
|
86
|
+
ML_evaluation
|
|
87
|
+
ML_trainer
|
|
88
|
+
ML_tutorial
|
|
73
89
|
PSO_optimization
|
|
74
|
-
|
|
90
|
+
RNN_forecast
|
|
75
91
|
utilities
|
|
76
92
|
VIF_factor
|
|
77
|
-
vision_helpers
|
|
78
93
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dragon-ml-toolbox
|
|
3
|
-
Version:
|
|
4
|
-
Summary: A collection of tools for data science and machine learning projects
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: A collection of tools for data science and machine learning projects.
|
|
5
5
|
Author-email: Karl Loza <luigiloza@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/DrAg0n-BoRn/ML_tools
|
|
@@ -37,9 +37,11 @@ Requires-Dist: Pillow
|
|
|
37
37
|
Provides-Extra: pytorch
|
|
38
38
|
Requires-Dist: torch; extra == "pytorch"
|
|
39
39
|
Requires-Dist: torchvision; extra == "pytorch"
|
|
40
|
+
Provides-Extra: gui
|
|
41
|
+
Requires-Dist: FreeSimpleGUI>=5.2; extra == "gui"
|
|
40
42
|
Dynamic: license-file
|
|
41
43
|
|
|
42
|
-
# dragon-ml-
|
|
44
|
+
# dragon-ml-toolbox
|
|
43
45
|
|
|
44
46
|
A collection of Python utilities for data science and machine learning, structured as a modular package for easy reuse and installation.
|
|
45
47
|
|
|
@@ -57,7 +59,7 @@ A collection of Python utilities for data science and machine learning, structur
|
|
|
57
59
|
Install the latest stable release from PyPI:
|
|
58
60
|
|
|
59
61
|
```bash
|
|
60
|
-
pip install dragon-ml-
|
|
62
|
+
pip install dragon-ml-toolbox
|
|
61
63
|
```
|
|
62
64
|
|
|
63
65
|
### Via GitHub (Editable)
|
|
@@ -77,16 +79,26 @@ Install from the conda-forge channel:
|
|
|
77
79
|
```bash
|
|
78
80
|
conda install -c conda-forge dragon-ml-toolbox
|
|
79
81
|
```
|
|
80
|
-
**Note:** This version is outdated or broken due to dependency incompatibilities.
|
|
82
|
+
**Note:** This version is outdated or broken due to dependency incompatibilities. Use PyPi instead.
|
|
81
83
|
|
|
82
84
|
## Optional dependencies
|
|
83
85
|
|
|
84
|
-
|
|
86
|
+
### FreeSimpleGUI
|
|
87
|
+
|
|
88
|
+
Wrapper library used to build powerful GUIs. Requires the tkinter backend.
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
pip install dragon-ml-toolbox[gui]
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### PyTorch
|
|
95
|
+
|
|
96
|
+
Different builds available depending on the **platform** and **hardware acceleration** (e.g., CUDA for NVIDIA GPUs on Linux/Windows, or MPS for Apple Silicon on macOS).
|
|
85
97
|
|
|
86
98
|
Install the default CPU-only version with
|
|
87
99
|
|
|
88
100
|
```bash
|
|
89
|
-
pip install dragon-ml-
|
|
101
|
+
pip install dragon-ml-toolbox[pytorch]
|
|
90
102
|
```
|
|
91
103
|
|
|
92
104
|
To make use of GPU acceleration use the official PyTorch installation instructions:
|
|
@@ -108,12 +120,17 @@ from ml_tools.logger import custom_logger
|
|
|
108
120
|
data_exploration
|
|
109
121
|
datasetmaster
|
|
110
122
|
ensemble_learning
|
|
123
|
+
ETL_engineering
|
|
124
|
+
GUI_tools
|
|
111
125
|
handle_excel
|
|
112
126
|
logger
|
|
113
127
|
MICE_imputation
|
|
128
|
+
ML_callbacks
|
|
129
|
+
ML_evaluation
|
|
130
|
+
ML_trainer
|
|
131
|
+
ML_tutorial
|
|
114
132
|
PSO_optimization
|
|
115
|
-
|
|
133
|
+
RNN_forecast
|
|
116
134
|
utilities
|
|
117
135
|
VIF_factor
|
|
118
|
-
vision_helpers
|
|
119
136
|
```
|
|
@@ -8,17 +8,21 @@ dragon_ml_toolbox.egg-info/dependency_links.txt
|
|
|
8
8
|
dragon_ml_toolbox.egg-info/requires.txt
|
|
9
9
|
dragon_ml_toolbox.egg-info/top_level.txt
|
|
10
10
|
ml_tools/ETL_engineering.py
|
|
11
|
+
ml_tools/GUI_tools.py
|
|
11
12
|
ml_tools/MICE_imputation.py
|
|
13
|
+
ml_tools/ML_callbacks.py
|
|
14
|
+
ml_tools/ML_evaluation.py
|
|
15
|
+
ml_tools/ML_trainer.py
|
|
16
|
+
ml_tools/ML_tutorial.py
|
|
12
17
|
ml_tools/PSO_optimization.py
|
|
18
|
+
ml_tools/RNN_forecast.py
|
|
13
19
|
ml_tools/VIF_factor.py
|
|
14
20
|
ml_tools/__init__.py
|
|
15
21
|
ml_tools/_particle_swarm_optimization.py
|
|
22
|
+
ml_tools/_pytorch_models.py
|
|
16
23
|
ml_tools/data_exploration.py
|
|
17
24
|
ml_tools/datasetmaster.py
|
|
18
25
|
ml_tools/ensemble_learning.py
|
|
19
26
|
ml_tools/handle_excel.py
|
|
20
27
|
ml_tools/logger.py
|
|
21
|
-
ml_tools/
|
|
22
|
-
ml_tools/trainer.py
|
|
23
|
-
ml_tools/utilities.py
|
|
24
|
-
ml_tools/vision_helpers.py
|
|
28
|
+
ml_tools/utilities.py
|
|
@@ -3,17 +3,18 @@ import re
|
|
|
3
3
|
from typing import Literal, Union, Optional, Any, Callable, List, Dict
|
|
4
4
|
from .utilities import _script_info
|
|
5
5
|
import pandas as pd
|
|
6
|
+
from .logger import _LOGGER
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
__all__ = [
|
|
9
10
|
"ColumnCleaner",
|
|
10
|
-
"DataFrameCleaner"
|
|
11
|
+
"DataFrameCleaner",
|
|
11
12
|
"TransformationRecipe",
|
|
12
13
|
"DataProcessor",
|
|
13
14
|
"KeywordDummifier",
|
|
14
15
|
"NumberExtractor",
|
|
15
16
|
"MultiNumberExtractor",
|
|
16
|
-
"RatioCalculator"
|
|
17
|
+
"RatioCalculator",
|
|
17
18
|
"CategoryMapper",
|
|
18
19
|
"RegexMapper",
|
|
19
20
|
"ValueBinner",
|
|
@@ -251,7 +252,7 @@ class DataProcessor:
|
|
|
251
252
|
raise TypeError(f"Invalid 'transform' action for '{input_col_name}': {transform_action}")
|
|
252
253
|
|
|
253
254
|
if not processed_columns:
|
|
254
|
-
|
|
255
|
+
_LOGGER.warning("The transformation resulted in an empty DataFrame.")
|
|
255
256
|
return pl.DataFrame()
|
|
256
257
|
|
|
257
258
|
return pl.DataFrame(processed_columns)
|
|
@@ -403,7 +404,7 @@ class NumberExtractor:
|
|
|
403
404
|
if not isinstance(round_digits, int):
|
|
404
405
|
raise TypeError("round_digits must be an integer.")
|
|
405
406
|
if dtype == "int":
|
|
406
|
-
|
|
407
|
+
_LOGGER.warning(f"'round_digits' is specified but dtype is 'int'. Rounding will be ignored.")
|
|
407
408
|
|
|
408
409
|
self.regex_pattern = regex_pattern
|
|
409
410
|
self.dtype = dtype
|
|
@@ -561,9 +562,9 @@ class RatioCalculator:
|
|
|
561
562
|
denominator = groups.struct.field("group_2").cast(pl.Float64, strict=False)
|
|
562
563
|
|
|
563
564
|
# Safely perform division, returning null if denominator is 0
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
).
|
|
565
|
+
final_expr = pl.when(denominator != 0).then(numerator / denominator).otherwise(None)
|
|
566
|
+
|
|
567
|
+
return pl.select(final_expr).to_series()
|
|
567
568
|
|
|
568
569
|
|
|
569
570
|
class CategoryMapper:
|