ilovetools 0.1.9__py3-none-any.whl → 0.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.
- ilovetools/__init__.py +1 -1
- ilovetools/ml/__init__.py +122 -0
- ilovetools/ml/dimensionality.py +1001 -0
- ilovetools/ml/imbalanced.py +797 -0
- {ilovetools-0.1.9.dist-info → ilovetools-0.2.1.dist-info}/METADATA +1 -1
- {ilovetools-0.1.9.dist-info → ilovetools-0.2.1.dist-info}/RECORD +9 -7
- {ilovetools-0.1.9.dist-info → ilovetools-0.2.1.dist-info}/WHEEL +0 -0
- {ilovetools-0.1.9.dist-info → ilovetools-0.2.1.dist-info}/licenses/LICENSE +0 -0
- {ilovetools-0.1.9.dist-info → ilovetools-0.2.1.dist-info}/top_level.txt +0 -0
ilovetools/__init__.py
CHANGED
ilovetools/ml/__init__.py
CHANGED
|
@@ -183,6 +183,70 @@ from .pipeline import (
|
|
|
183
183
|
pipe_summary,
|
|
184
184
|
)
|
|
185
185
|
|
|
186
|
+
from .imbalanced import (
|
|
187
|
+
# Full names
|
|
188
|
+
random_oversampling,
|
|
189
|
+
random_undersampling,
|
|
190
|
+
smote_oversampling,
|
|
191
|
+
tomek_links_undersampling,
|
|
192
|
+
class_weight_calculator,
|
|
193
|
+
stratified_sampling,
|
|
194
|
+
compute_class_distribution,
|
|
195
|
+
balance_dataset,
|
|
196
|
+
minority_class_identifier,
|
|
197
|
+
imbalance_ratio,
|
|
198
|
+
synthetic_sample_generator,
|
|
199
|
+
near_miss_undersampling,
|
|
200
|
+
# Abbreviated aliases
|
|
201
|
+
random_oversample,
|
|
202
|
+
random_undersample,
|
|
203
|
+
smote,
|
|
204
|
+
tomek_links,
|
|
205
|
+
class_weights,
|
|
206
|
+
stratified_sample,
|
|
207
|
+
class_dist,
|
|
208
|
+
balance_data,
|
|
209
|
+
minority_class,
|
|
210
|
+
imbalance_ratio_alias,
|
|
211
|
+
synthetic_sample,
|
|
212
|
+
near_miss,
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
from .dimensionality import (
|
|
216
|
+
# Full names
|
|
217
|
+
pca_transform,
|
|
218
|
+
explained_variance_ratio,
|
|
219
|
+
scree_plot_data,
|
|
220
|
+
cumulative_variance,
|
|
221
|
+
pca_inverse_transform,
|
|
222
|
+
truncated_svd,
|
|
223
|
+
kernel_pca_transform,
|
|
224
|
+
incremental_pca_transform,
|
|
225
|
+
feature_projection,
|
|
226
|
+
dimensionality_reduction_ratio,
|
|
227
|
+
reconstruction_error,
|
|
228
|
+
optimal_components,
|
|
229
|
+
whitening_transform,
|
|
230
|
+
component_loadings,
|
|
231
|
+
biplot_data,
|
|
232
|
+
# Abbreviated aliases
|
|
233
|
+
pca,
|
|
234
|
+
exp_var,
|
|
235
|
+
scree_plot,
|
|
236
|
+
cum_var,
|
|
237
|
+
pca_inverse,
|
|
238
|
+
svd,
|
|
239
|
+
kpca,
|
|
240
|
+
ipca,
|
|
241
|
+
project,
|
|
242
|
+
dim_ratio,
|
|
243
|
+
recon_error,
|
|
244
|
+
opt_components,
|
|
245
|
+
whiten,
|
|
246
|
+
loadings,
|
|
247
|
+
biplot,
|
|
248
|
+
)
|
|
249
|
+
|
|
186
250
|
__all__ = [
|
|
187
251
|
# Metrics (full names)
|
|
188
252
|
'accuracy_score',
|
|
@@ -344,4 +408,62 @@ __all__ = [
|
|
|
344
408
|
'set_params',
|
|
345
409
|
'clone_pipe',
|
|
346
410
|
'pipe_summary',
|
|
411
|
+
# Imbalanced (full names)
|
|
412
|
+
'random_oversampling',
|
|
413
|
+
'random_undersampling',
|
|
414
|
+
'smote_oversampling',
|
|
415
|
+
'tomek_links_undersampling',
|
|
416
|
+
'class_weight_calculator',
|
|
417
|
+
'stratified_sampling',
|
|
418
|
+
'compute_class_distribution',
|
|
419
|
+
'balance_dataset',
|
|
420
|
+
'minority_class_identifier',
|
|
421
|
+
'imbalance_ratio',
|
|
422
|
+
'synthetic_sample_generator',
|
|
423
|
+
'near_miss_undersampling',
|
|
424
|
+
# Imbalanced (aliases)
|
|
425
|
+
'random_oversample',
|
|
426
|
+
'random_undersample',
|
|
427
|
+
'smote',
|
|
428
|
+
'tomek_links',
|
|
429
|
+
'class_weights',
|
|
430
|
+
'stratified_sample',
|
|
431
|
+
'class_dist',
|
|
432
|
+
'balance_data',
|
|
433
|
+
'minority_class',
|
|
434
|
+
'imbalance_ratio_alias',
|
|
435
|
+
'synthetic_sample',
|
|
436
|
+
'near_miss',
|
|
437
|
+
# Dimensionality (full names)
|
|
438
|
+
'pca_transform',
|
|
439
|
+
'explained_variance_ratio',
|
|
440
|
+
'scree_plot_data',
|
|
441
|
+
'cumulative_variance',
|
|
442
|
+
'pca_inverse_transform',
|
|
443
|
+
'truncated_svd',
|
|
444
|
+
'kernel_pca_transform',
|
|
445
|
+
'incremental_pca_transform',
|
|
446
|
+
'feature_projection',
|
|
447
|
+
'dimensionality_reduction_ratio',
|
|
448
|
+
'reconstruction_error',
|
|
449
|
+
'optimal_components',
|
|
450
|
+
'whitening_transform',
|
|
451
|
+
'component_loadings',
|
|
452
|
+
'biplot_data',
|
|
453
|
+
# Dimensionality (aliases)
|
|
454
|
+
'pca',
|
|
455
|
+
'exp_var',
|
|
456
|
+
'scree_plot',
|
|
457
|
+
'cum_var',
|
|
458
|
+
'pca_inverse',
|
|
459
|
+
'svd',
|
|
460
|
+
'kpca',
|
|
461
|
+
'ipca',
|
|
462
|
+
'project',
|
|
463
|
+
'dim_ratio',
|
|
464
|
+
'recon_error',
|
|
465
|
+
'opt_components',
|
|
466
|
+
'whiten',
|
|
467
|
+
'loadings',
|
|
468
|
+
'biplot',
|
|
347
469
|
]
|