dragon-ml-toolbox 1.1.5__tar.gz → 1.2.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-1.2.0/LICENSE +21 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/PKG-INFO +40 -23
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/README.md +16 -19
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/dragon_ml_toolbox.egg-info/PKG-INFO +40 -23
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/dragon_ml_toolbox.egg-info/SOURCES.txt +1 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/dragon_ml_toolbox.egg-info/requires.txt +20 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/MICE_imputation.py +1 -1
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/data_exploration.py +1 -1
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/logger.py +1 -1
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/pyproject.toml +26 -4
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/dragon_ml_toolbox.egg-info/dependency_links.txt +0 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/dragon_ml_toolbox.egg-info/top_level.txt +0 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/__init__.py +0 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/datasetmaster.py +0 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/ensemble_learning.py +0 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/handle_excel.py +0 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/particle_swarm_optimization.py +0 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/pytorch_models.py +0 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/trainer.py +0 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/utilities.py +0 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/ml_tools/vision_helpers.py +0 -0
- {dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/setup.cfg +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Karl Loza
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dragon-ml-toolbox
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: A collection of tools for machine learning projects
|
|
3
|
+
Version: 1.2.0
|
|
4
|
+
Summary: A collection of tools for data science and machine learning projects
|
|
5
5
|
Author-email: Karl Loza <luigiloza@gmail.com>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/DrAg0n-BoRn/ML_tools
|
|
8
8
|
Project-URL: Changelog, https://github.com/DrAg0n-BoRn/ML_tools/blob/master/CHANGELOG.md
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
11
10
|
Classifier: Operating System :: OS Independent
|
|
12
11
|
Requires-Python: >=3.9
|
|
13
12
|
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
14
|
Requires-Dist: numpy
|
|
15
15
|
Requires-Dist: pandas
|
|
16
16
|
Requires-Dist: matplotlib
|
|
@@ -70,6 +70,26 @@ Provides-Extra: vision-helpers
|
|
|
70
70
|
Requires-Dist: Pillow; extra == "vision-helpers"
|
|
71
71
|
Requires-Dist: torch; extra == "vision-helpers"
|
|
72
72
|
Requires-Dist: torchvision; extra == "vision-helpers"
|
|
73
|
+
Provides-Extra: full
|
|
74
|
+
Requires-Dist: pandas; extra == "full"
|
|
75
|
+
Requires-Dist: numpy; extra == "full"
|
|
76
|
+
Requires-Dist: matplotlib; extra == "full"
|
|
77
|
+
Requires-Dist: seaborn; extra == "full"
|
|
78
|
+
Requires-Dist: statsmodels; extra == "full"
|
|
79
|
+
Requires-Dist: ipython; extra == "full"
|
|
80
|
+
Requires-Dist: torch; extra == "full"
|
|
81
|
+
Requires-Dist: scikit-learn; extra == "full"
|
|
82
|
+
Requires-Dist: imblearn; extra == "full"
|
|
83
|
+
Requires-Dist: Pillow; extra == "full"
|
|
84
|
+
Requires-Dist: joblib; extra == "full"
|
|
85
|
+
Requires-Dist: xgboost; extra == "full"
|
|
86
|
+
Requires-Dist: lightgbm; extra == "full"
|
|
87
|
+
Requires-Dist: shap; extra == "full"
|
|
88
|
+
Requires-Dist: openpyxl; extra == "full"
|
|
89
|
+
Requires-Dist: miceforest; extra == "full"
|
|
90
|
+
Requires-Dist: polars; extra == "full"
|
|
91
|
+
Requires-Dist: torchvision; extra == "full"
|
|
92
|
+
Dynamic: license-file
|
|
73
93
|
|
|
74
94
|
# dragon-ml-tools
|
|
75
95
|
|
|
@@ -84,22 +104,30 @@ A collection of Python utilities and machine learning tools, structured as a mod
|
|
|
84
104
|
|
|
85
105
|
## Installation
|
|
86
106
|
|
|
87
|
-
|
|
107
|
+
Python 3.9+ recommended.
|
|
88
108
|
|
|
89
|
-
|
|
109
|
+
### Via PyPI (Stable Releases)
|
|
110
|
+
|
|
111
|
+
Install the latest stable release from PyPI with optional dependencies:
|
|
90
112
|
|
|
91
113
|
```bash
|
|
92
|
-
|
|
93
|
-
cd ML_tools
|
|
94
|
-
pip install -e '.[logger]'
|
|
114
|
+
pip install dragon-ml-tools[logger,trainer]
|
|
95
115
|
```
|
|
96
116
|
|
|
97
|
-
|
|
117
|
+
To install dependencies from all modules
|
|
98
118
|
|
|
99
|
-
|
|
119
|
+
```bash
|
|
120
|
+
pip install dragon-ml-tools[full]
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Via GitHub (Editable)
|
|
124
|
+
|
|
125
|
+
Clone the repository and install in editable mode with optional dependencies:
|
|
100
126
|
|
|
101
127
|
```bash
|
|
102
|
-
|
|
128
|
+
git clone https://github.com/DrAg0n-BoRn/ML_tools.git
|
|
129
|
+
cd ML_tools
|
|
130
|
+
pip install -e '.[logger]'
|
|
103
131
|
```
|
|
104
132
|
|
|
105
133
|
## Usage
|
|
@@ -110,14 +138,3 @@ After installation, import modules like this:
|
|
|
110
138
|
from ml_tools.utilities import sanitize_filename
|
|
111
139
|
from ml_tools.logger import custom_logger
|
|
112
140
|
```
|
|
113
|
-
|
|
114
|
-
## Development
|
|
115
|
-
|
|
116
|
-
Python 3.9+ recommended.
|
|
117
|
-
|
|
118
|
-
To install all dependencies including development tools:
|
|
119
|
-
|
|
120
|
-
```python
|
|
121
|
-
pip install -e '.[dev]'
|
|
122
|
-
```
|
|
123
|
-
|
|
@@ -11,22 +11,30 @@ A collection of Python utilities and machine learning tools, structured as a mod
|
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Python 3.9+ recommended.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
### Via PyPI (Stable Releases)
|
|
17
|
+
|
|
18
|
+
Install the latest stable release from PyPI with optional dependencies:
|
|
17
19
|
|
|
18
20
|
```bash
|
|
19
|
-
|
|
20
|
-
cd ML_tools
|
|
21
|
-
pip install -e '.[logger]'
|
|
21
|
+
pip install dragon-ml-tools[logger,trainer]
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
To install dependencies from all modules
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
```bash
|
|
27
|
+
pip install dragon-ml-tools[full]
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Via GitHub (Editable)
|
|
31
|
+
|
|
32
|
+
Clone the repository and install in editable mode with optional dependencies:
|
|
27
33
|
|
|
28
34
|
```bash
|
|
29
|
-
|
|
35
|
+
git clone https://github.com/DrAg0n-BoRn/ML_tools.git
|
|
36
|
+
cd ML_tools
|
|
37
|
+
pip install -e '.[logger]'
|
|
30
38
|
```
|
|
31
39
|
|
|
32
40
|
## Usage
|
|
@@ -37,14 +45,3 @@ After installation, import modules like this:
|
|
|
37
45
|
from ml_tools.utilities import sanitize_filename
|
|
38
46
|
from ml_tools.logger import custom_logger
|
|
39
47
|
```
|
|
40
|
-
|
|
41
|
-
## Development
|
|
42
|
-
|
|
43
|
-
Python 3.9+ recommended.
|
|
44
|
-
|
|
45
|
-
To install all dependencies including development tools:
|
|
46
|
-
|
|
47
|
-
```python
|
|
48
|
-
pip install -e '.[dev]'
|
|
49
|
-
```
|
|
50
|
-
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dragon-ml-toolbox
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: A collection of tools for machine learning projects
|
|
3
|
+
Version: 1.2.0
|
|
4
|
+
Summary: A collection of tools for data science and machine learning projects
|
|
5
5
|
Author-email: Karl Loza <luigiloza@gmail.com>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/DrAg0n-BoRn/ML_tools
|
|
8
8
|
Project-URL: Changelog, https://github.com/DrAg0n-BoRn/ML_tools/blob/master/CHANGELOG.md
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
11
10
|
Classifier: Operating System :: OS Independent
|
|
12
11
|
Requires-Python: >=3.9
|
|
13
12
|
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
14
|
Requires-Dist: numpy
|
|
15
15
|
Requires-Dist: pandas
|
|
16
16
|
Requires-Dist: matplotlib
|
|
@@ -70,6 +70,26 @@ Provides-Extra: vision-helpers
|
|
|
70
70
|
Requires-Dist: Pillow; extra == "vision-helpers"
|
|
71
71
|
Requires-Dist: torch; extra == "vision-helpers"
|
|
72
72
|
Requires-Dist: torchvision; extra == "vision-helpers"
|
|
73
|
+
Provides-Extra: full
|
|
74
|
+
Requires-Dist: pandas; extra == "full"
|
|
75
|
+
Requires-Dist: numpy; extra == "full"
|
|
76
|
+
Requires-Dist: matplotlib; extra == "full"
|
|
77
|
+
Requires-Dist: seaborn; extra == "full"
|
|
78
|
+
Requires-Dist: statsmodels; extra == "full"
|
|
79
|
+
Requires-Dist: ipython; extra == "full"
|
|
80
|
+
Requires-Dist: torch; extra == "full"
|
|
81
|
+
Requires-Dist: scikit-learn; extra == "full"
|
|
82
|
+
Requires-Dist: imblearn; extra == "full"
|
|
83
|
+
Requires-Dist: Pillow; extra == "full"
|
|
84
|
+
Requires-Dist: joblib; extra == "full"
|
|
85
|
+
Requires-Dist: xgboost; extra == "full"
|
|
86
|
+
Requires-Dist: lightgbm; extra == "full"
|
|
87
|
+
Requires-Dist: shap; extra == "full"
|
|
88
|
+
Requires-Dist: openpyxl; extra == "full"
|
|
89
|
+
Requires-Dist: miceforest; extra == "full"
|
|
90
|
+
Requires-Dist: polars; extra == "full"
|
|
91
|
+
Requires-Dist: torchvision; extra == "full"
|
|
92
|
+
Dynamic: license-file
|
|
73
93
|
|
|
74
94
|
# dragon-ml-tools
|
|
75
95
|
|
|
@@ -84,22 +104,30 @@ A collection of Python utilities and machine learning tools, structured as a mod
|
|
|
84
104
|
|
|
85
105
|
## Installation
|
|
86
106
|
|
|
87
|
-
|
|
107
|
+
Python 3.9+ recommended.
|
|
88
108
|
|
|
89
|
-
|
|
109
|
+
### Via PyPI (Stable Releases)
|
|
110
|
+
|
|
111
|
+
Install the latest stable release from PyPI with optional dependencies:
|
|
90
112
|
|
|
91
113
|
```bash
|
|
92
|
-
|
|
93
|
-
cd ML_tools
|
|
94
|
-
pip install -e '.[logger]'
|
|
114
|
+
pip install dragon-ml-tools[logger,trainer]
|
|
95
115
|
```
|
|
96
116
|
|
|
97
|
-
|
|
117
|
+
To install dependencies from all modules
|
|
98
118
|
|
|
99
|
-
|
|
119
|
+
```bash
|
|
120
|
+
pip install dragon-ml-tools[full]
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Via GitHub (Editable)
|
|
124
|
+
|
|
125
|
+
Clone the repository and install in editable mode with optional dependencies:
|
|
100
126
|
|
|
101
127
|
```bash
|
|
102
|
-
|
|
128
|
+
git clone https://github.com/DrAg0n-BoRn/ML_tools.git
|
|
129
|
+
cd ML_tools
|
|
130
|
+
pip install -e '.[logger]'
|
|
103
131
|
```
|
|
104
132
|
|
|
105
133
|
## Usage
|
|
@@ -110,14 +138,3 @@ After installation, import modules like this:
|
|
|
110
138
|
from ml_tools.utilities import sanitize_filename
|
|
111
139
|
from ml_tools.logger import custom_logger
|
|
112
140
|
```
|
|
113
|
-
|
|
114
|
-
## Development
|
|
115
|
-
|
|
116
|
-
Python 3.9+ recommended.
|
|
117
|
-
|
|
118
|
-
To install all dependencies including development tools:
|
|
119
|
-
|
|
120
|
-
```python
|
|
121
|
-
pip install -e '.[dev]'
|
|
122
|
-
```
|
|
123
|
-
|
|
@@ -32,6 +32,26 @@ xgboost
|
|
|
32
32
|
lightgbm
|
|
33
33
|
shap
|
|
34
34
|
|
|
35
|
+
[full]
|
|
36
|
+
pandas
|
|
37
|
+
numpy
|
|
38
|
+
matplotlib
|
|
39
|
+
seaborn
|
|
40
|
+
statsmodels
|
|
41
|
+
ipython
|
|
42
|
+
torch
|
|
43
|
+
scikit-learn
|
|
44
|
+
imblearn
|
|
45
|
+
Pillow
|
|
46
|
+
joblib
|
|
47
|
+
xgboost
|
|
48
|
+
lightgbm
|
|
49
|
+
shap
|
|
50
|
+
openpyxl
|
|
51
|
+
miceforest
|
|
52
|
+
polars
|
|
53
|
+
torchvision
|
|
54
|
+
|
|
35
55
|
[handle_excel]
|
|
36
56
|
openpyxl
|
|
37
57
|
pandas
|
|
@@ -3,7 +3,7 @@ import miceforest as mf
|
|
|
3
3
|
import os
|
|
4
4
|
import matplotlib.pyplot as plt
|
|
5
5
|
import numpy as np
|
|
6
|
-
from utilities import load_dataframe, list_csv_paths
|
|
6
|
+
from ml_tools.utilities import load_dataframe, list_csv_paths
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
def apply_mice(df: pd.DataFrame, df_name: str, resulting_datasets: int=1, iterations: int=20, random_state: int=101):
|
|
@@ -11,7 +11,7 @@ from typing import Union, Literal, Dict, Tuple, Optional
|
|
|
11
11
|
import os
|
|
12
12
|
import sys
|
|
13
13
|
import textwrap
|
|
14
|
-
from utilities import sanitize_filename
|
|
14
|
+
from ml_tools.utilities import sanitize_filename
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
# Keep track of all available functions, show using `info()`
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dragon-ml-toolbox"
|
|
3
|
-
version = "1.
|
|
4
|
-
description = "A collection of tools for machine learning projects"
|
|
3
|
+
version = "1.2.0"
|
|
4
|
+
description = "A collection of tools for data science and machine learning projects"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Karl Loza", email = "luigiloza@gmail.com" }
|
|
7
7
|
]
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
requires-python = ">=3.9"
|
|
10
|
-
license =
|
|
10
|
+
license = "MIT"
|
|
11
11
|
classifiers = [
|
|
12
12
|
"Programming Language :: Python :: 3",
|
|
13
|
-
"License :: OSI Approved :: MIT License",
|
|
14
13
|
"Operating System :: OS Independent"
|
|
15
14
|
]
|
|
16
15
|
dependencies = [
|
|
@@ -100,7 +99,30 @@ vision_helpers = [
|
|
|
100
99
|
"torchvision"
|
|
101
100
|
]
|
|
102
101
|
|
|
102
|
+
full = [
|
|
103
|
+
"pandas",
|
|
104
|
+
"numpy",
|
|
105
|
+
"matplotlib",
|
|
106
|
+
"seaborn",
|
|
107
|
+
"statsmodels",
|
|
108
|
+
"ipython",
|
|
109
|
+
"torch",
|
|
110
|
+
"scikit-learn",
|
|
111
|
+
"imblearn",
|
|
112
|
+
"Pillow",
|
|
113
|
+
"joblib",
|
|
114
|
+
"xgboost",
|
|
115
|
+
"lightgbm",
|
|
116
|
+
"shap",
|
|
117
|
+
"openpyxl",
|
|
118
|
+
"miceforest",
|
|
119
|
+
"polars",
|
|
120
|
+
"torchvision"
|
|
121
|
+
]
|
|
122
|
+
|
|
103
123
|
[build-system]
|
|
104
124
|
requires = ["setuptools>=61.0"]
|
|
105
125
|
build-backend = "setuptools.build_meta"
|
|
106
126
|
|
|
127
|
+
[tool.setuptools]
|
|
128
|
+
packages = ["ml_tools"]
|
{dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/dragon_ml_toolbox.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{dragon_ml_toolbox-1.1.5 → dragon_ml_toolbox-1.2.0}/dragon_ml_toolbox.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|