ilovetools 0.1.4__tar.gz → 0.1.6__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.
- {ilovetools-0.1.4/ilovetools.egg-info → ilovetools-0.1.6}/PKG-INFO +1 -1
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/__init__.py +1 -1
- ilovetools-0.1.6/ilovetools/ml/__init__.py +182 -0
- ilovetools-0.1.6/ilovetools/ml/cross_validation.py +612 -0
- ilovetools-0.1.6/ilovetools/ml/ensemble.py +872 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/ml/metrics.py +43 -31
- ilovetools-0.1.6/ilovetools/ml/tuning.py +781 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6/ilovetools.egg-info}/PKG-INFO +1 -1
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools.egg-info/SOURCES.txt +3 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/pyproject.toml +1 -1
- {ilovetools-0.1.4 → ilovetools-0.1.6}/setup.py +1 -1
- ilovetools-0.1.4/ilovetools/ml/__init__.py +0 -31
- {ilovetools-0.1.4 → ilovetools-0.1.6}/LICENSE +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/MANIFEST.in +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/README.md +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/ai/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/ai/embeddings.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/ai/inference.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/ai/llm_helpers.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/audio/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/automation/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/conversion/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/data/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/data/feature_engineering.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/data/preprocessing.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/database/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/datetime/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/files/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/image/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/security/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/text/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/utils/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/validation/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools/web/__init__.py +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools.egg-info/dependency_links.txt +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/ilovetools.egg-info/top_level.txt +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/requirements.txt +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/setup.cfg +0 -0
- {ilovetools-0.1.4 → ilovetools-0.1.6}/tests/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ilovetools
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: A comprehensive Python utility library with modular tools for AI/ML, data processing, and daily programming needs
|
|
5
5
|
Home-page: https://github.com/AliMehdi512/ilovetools
|
|
6
6
|
Author: Ali Mehdi
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Machine Learning utilities module
|
|
3
|
+
All functions have dual names: full descriptive name + abbreviated alias
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from .metrics import (
|
|
7
|
+
accuracy_score,
|
|
8
|
+
precision_score,
|
|
9
|
+
recall_score,
|
|
10
|
+
f1_score,
|
|
11
|
+
confusion_matrix,
|
|
12
|
+
classification_report,
|
|
13
|
+
mean_squared_error,
|
|
14
|
+
mean_absolute_error,
|
|
15
|
+
root_mean_squared_error,
|
|
16
|
+
r2_score,
|
|
17
|
+
roc_auc_score,
|
|
18
|
+
# Aliases
|
|
19
|
+
mae,
|
|
20
|
+
mse,
|
|
21
|
+
rmse,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
from .cross_validation import (
|
|
25
|
+
# Full names
|
|
26
|
+
k_fold_cross_validation,
|
|
27
|
+
stratified_k_fold,
|
|
28
|
+
time_series_split,
|
|
29
|
+
leave_one_out_cv,
|
|
30
|
+
shuffle_split_cv,
|
|
31
|
+
cross_validate_score,
|
|
32
|
+
holdout_validation_split,
|
|
33
|
+
train_val_test_split,
|
|
34
|
+
# Abbreviated aliases
|
|
35
|
+
kfold,
|
|
36
|
+
skfold,
|
|
37
|
+
tssplit,
|
|
38
|
+
loocv,
|
|
39
|
+
shuffle_cv,
|
|
40
|
+
cv_score,
|
|
41
|
+
holdout,
|
|
42
|
+
tvt_split,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
from .tuning import (
|
|
46
|
+
# Full names
|
|
47
|
+
grid_search_cv,
|
|
48
|
+
random_search_cv,
|
|
49
|
+
generate_param_grid,
|
|
50
|
+
extract_best_params,
|
|
51
|
+
format_cv_results,
|
|
52
|
+
learning_curve_data,
|
|
53
|
+
validation_curve_data,
|
|
54
|
+
early_stopping_monitor,
|
|
55
|
+
compare_models_cv,
|
|
56
|
+
bayesian_search_simple,
|
|
57
|
+
# Abbreviated aliases
|
|
58
|
+
gridsearch,
|
|
59
|
+
randomsearch,
|
|
60
|
+
param_grid,
|
|
61
|
+
best_params,
|
|
62
|
+
cv_results,
|
|
63
|
+
learning_curve,
|
|
64
|
+
val_curve,
|
|
65
|
+
early_stop,
|
|
66
|
+
compare_models,
|
|
67
|
+
bayesopt,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
from .ensemble import (
|
|
71
|
+
# Full names
|
|
72
|
+
voting_classifier,
|
|
73
|
+
voting_regressor,
|
|
74
|
+
bagging_predictions,
|
|
75
|
+
boosting_sequential,
|
|
76
|
+
stacking_ensemble,
|
|
77
|
+
weighted_average_ensemble,
|
|
78
|
+
majority_vote,
|
|
79
|
+
soft_vote,
|
|
80
|
+
bootstrap_sample,
|
|
81
|
+
out_of_bag_score,
|
|
82
|
+
ensemble_diversity,
|
|
83
|
+
blend_predictions,
|
|
84
|
+
# Abbreviated aliases
|
|
85
|
+
vote_clf,
|
|
86
|
+
vote_reg,
|
|
87
|
+
bagging,
|
|
88
|
+
boosting,
|
|
89
|
+
stacking,
|
|
90
|
+
weighted_avg,
|
|
91
|
+
hard_vote,
|
|
92
|
+
soft_vote_alias,
|
|
93
|
+
bootstrap,
|
|
94
|
+
oob_score,
|
|
95
|
+
diversity,
|
|
96
|
+
blend,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
__all__ = [
|
|
100
|
+
# Metrics (full names)
|
|
101
|
+
'accuracy_score',
|
|
102
|
+
'precision_score',
|
|
103
|
+
'recall_score',
|
|
104
|
+
'f1_score',
|
|
105
|
+
'confusion_matrix',
|
|
106
|
+
'classification_report',
|
|
107
|
+
'mean_squared_error',
|
|
108
|
+
'mean_absolute_error',
|
|
109
|
+
'root_mean_squared_error',
|
|
110
|
+
'r2_score',
|
|
111
|
+
'roc_auc_score',
|
|
112
|
+
# Metrics (aliases)
|
|
113
|
+
'mae',
|
|
114
|
+
'mse',
|
|
115
|
+
'rmse',
|
|
116
|
+
# Cross-validation (full names)
|
|
117
|
+
'k_fold_cross_validation',
|
|
118
|
+
'stratified_k_fold',
|
|
119
|
+
'time_series_split',
|
|
120
|
+
'leave_one_out_cv',
|
|
121
|
+
'shuffle_split_cv',
|
|
122
|
+
'cross_validate_score',
|
|
123
|
+
'holdout_validation_split',
|
|
124
|
+
'train_val_test_split',
|
|
125
|
+
# Cross-validation (aliases)
|
|
126
|
+
'kfold',
|
|
127
|
+
'skfold',
|
|
128
|
+
'tssplit',
|
|
129
|
+
'loocv',
|
|
130
|
+
'shuffle_cv',
|
|
131
|
+
'cv_score',
|
|
132
|
+
'holdout',
|
|
133
|
+
'tvt_split',
|
|
134
|
+
# Tuning (full names)
|
|
135
|
+
'grid_search_cv',
|
|
136
|
+
'random_search_cv',
|
|
137
|
+
'generate_param_grid',
|
|
138
|
+
'extract_best_params',
|
|
139
|
+
'format_cv_results',
|
|
140
|
+
'learning_curve_data',
|
|
141
|
+
'validation_curve_data',
|
|
142
|
+
'early_stopping_monitor',
|
|
143
|
+
'compare_models_cv',
|
|
144
|
+
'bayesian_search_simple',
|
|
145
|
+
# Tuning (aliases)
|
|
146
|
+
'gridsearch',
|
|
147
|
+
'randomsearch',
|
|
148
|
+
'param_grid',
|
|
149
|
+
'best_params',
|
|
150
|
+
'cv_results',
|
|
151
|
+
'learning_curve',
|
|
152
|
+
'val_curve',
|
|
153
|
+
'early_stop',
|
|
154
|
+
'compare_models',
|
|
155
|
+
'bayesopt',
|
|
156
|
+
# Ensemble (full names)
|
|
157
|
+
'voting_classifier',
|
|
158
|
+
'voting_regressor',
|
|
159
|
+
'bagging_predictions',
|
|
160
|
+
'boosting_sequential',
|
|
161
|
+
'stacking_ensemble',
|
|
162
|
+
'weighted_average_ensemble',
|
|
163
|
+
'majority_vote',
|
|
164
|
+
'soft_vote',
|
|
165
|
+
'bootstrap_sample',
|
|
166
|
+
'out_of_bag_score',
|
|
167
|
+
'ensemble_diversity',
|
|
168
|
+
'blend_predictions',
|
|
169
|
+
# Ensemble (aliases)
|
|
170
|
+
'vote_clf',
|
|
171
|
+
'vote_reg',
|
|
172
|
+
'bagging',
|
|
173
|
+
'boosting',
|
|
174
|
+
'stacking',
|
|
175
|
+
'weighted_avg',
|
|
176
|
+
'hard_vote',
|
|
177
|
+
'soft_vote_alias',
|
|
178
|
+
'bootstrap',
|
|
179
|
+
'oob_score',
|
|
180
|
+
'diversity',
|
|
181
|
+
'blend',
|
|
182
|
+
]
|