ilovetools 0.1.3__py3-none-any.whl → 0.1.5__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.
ilovetools/__init__.py CHANGED
@@ -2,13 +2,14 @@
2
2
  ilovetools - A comprehensive Python utility library
3
3
  """
4
4
 
5
- __version__ = "0.1.3"
5
+ __version__ = "0.1.5"
6
6
  __author__ = "Ali Mehdi"
7
7
  __email__ = "ali.mehdi.dev579@gmail.com"
8
8
 
9
9
  # Import all modules for easy access
10
10
  from . import ai
11
11
  from . import data
12
+ from . import ml
12
13
  from . import files
13
14
  from . import text
14
15
  from . import image
@@ -25,6 +26,7 @@ from . import utils
25
26
  __all__ = [
26
27
  "ai",
27
28
  "data",
29
+ "ml",
28
30
  "files",
29
31
  "text",
30
32
  "image",
@@ -0,0 +1,127 @@
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
+ __all__ = [
71
+ # Metrics (full names)
72
+ 'accuracy_score',
73
+ 'precision_score',
74
+ 'recall_score',
75
+ 'f1_score',
76
+ 'confusion_matrix',
77
+ 'classification_report',
78
+ 'mean_squared_error',
79
+ 'mean_absolute_error',
80
+ 'root_mean_squared_error',
81
+ 'r2_score',
82
+ 'roc_auc_score',
83
+ # Metrics (aliases)
84
+ 'mae',
85
+ 'mse',
86
+ 'rmse',
87
+ # Cross-validation (full names)
88
+ 'k_fold_cross_validation',
89
+ 'stratified_k_fold',
90
+ 'time_series_split',
91
+ 'leave_one_out_cv',
92
+ 'shuffle_split_cv',
93
+ 'cross_validate_score',
94
+ 'holdout_validation_split',
95
+ 'train_val_test_split',
96
+ # Cross-validation (aliases)
97
+ 'kfold',
98
+ 'skfold',
99
+ 'tssplit',
100
+ 'loocv',
101
+ 'shuffle_cv',
102
+ 'cv_score',
103
+ 'holdout',
104
+ 'tvt_split',
105
+ # Tuning (full names)
106
+ 'grid_search_cv',
107
+ 'random_search_cv',
108
+ 'generate_param_grid',
109
+ 'extract_best_params',
110
+ 'format_cv_results',
111
+ 'learning_curve_data',
112
+ 'validation_curve_data',
113
+ 'early_stopping_monitor',
114
+ 'compare_models_cv',
115
+ 'bayesian_search_simple',
116
+ # Tuning (aliases)
117
+ 'gridsearch',
118
+ 'randomsearch',
119
+ 'param_grid',
120
+ 'best_params',
121
+ 'cv_results',
122
+ 'learning_curve',
123
+ 'val_curve',
124
+ 'early_stop',
125
+ 'compare_models',
126
+ 'bayesopt',
127
+ ]