ilovetools 0.1.8__py3-none-any.whl → 0.2.0__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 +110 -0
- ilovetools/ml/imbalanced.py +797 -0
- ilovetools/ml/pipeline.py +711 -0
- {ilovetools-0.1.8.dist-info → ilovetools-0.2.0.dist-info}/METADATA +1 -1
- {ilovetools-0.1.8.dist-info → ilovetools-0.2.0.dist-info}/RECORD +9 -7
- {ilovetools-0.1.8.dist-info → ilovetools-0.2.0.dist-info}/WHEEL +0 -0
- {ilovetools-0.1.8.dist-info → ilovetools-0.2.0.dist-info}/licenses/LICENSE +0 -0
- {ilovetools-0.1.8.dist-info → ilovetools-0.2.0.dist-info}/top_level.txt +0 -0
ilovetools/__init__.py
CHANGED
ilovetools/ml/__init__.py
CHANGED
|
@@ -154,6 +154,64 @@ from .interpretation import (
|
|
|
154
154
|
model_summary,
|
|
155
155
|
)
|
|
156
156
|
|
|
157
|
+
from .pipeline import (
|
|
158
|
+
# Full names
|
|
159
|
+
create_pipeline,
|
|
160
|
+
add_pipeline_step,
|
|
161
|
+
execute_pipeline,
|
|
162
|
+
validate_pipeline,
|
|
163
|
+
serialize_pipeline,
|
|
164
|
+
deserialize_pipeline,
|
|
165
|
+
pipeline_transform,
|
|
166
|
+
pipeline_fit_transform,
|
|
167
|
+
get_pipeline_params,
|
|
168
|
+
set_pipeline_params,
|
|
169
|
+
clone_pipeline,
|
|
170
|
+
pipeline_summary,
|
|
171
|
+
# Abbreviated aliases
|
|
172
|
+
create_pipe,
|
|
173
|
+
add_step,
|
|
174
|
+
execute_pipe,
|
|
175
|
+
validate_pipe,
|
|
176
|
+
serialize_pipe,
|
|
177
|
+
deserialize_pipe,
|
|
178
|
+
pipe_transform,
|
|
179
|
+
pipe_fit_transform,
|
|
180
|
+
get_params,
|
|
181
|
+
set_params,
|
|
182
|
+
clone_pipe,
|
|
183
|
+
pipe_summary,
|
|
184
|
+
)
|
|
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
|
+
|
|
157
215
|
__all__ = [
|
|
158
216
|
# Metrics (full names)
|
|
159
217
|
'accuracy_score',
|
|
@@ -289,4 +347,56 @@ __all__ = [
|
|
|
289
347
|
'global_importance',
|
|
290
348
|
'local_importance',
|
|
291
349
|
'model_summary',
|
|
350
|
+
# Pipeline (full names)
|
|
351
|
+
'create_pipeline',
|
|
352
|
+
'add_pipeline_step',
|
|
353
|
+
'execute_pipeline',
|
|
354
|
+
'validate_pipeline',
|
|
355
|
+
'serialize_pipeline',
|
|
356
|
+
'deserialize_pipeline',
|
|
357
|
+
'pipeline_transform',
|
|
358
|
+
'pipeline_fit_transform',
|
|
359
|
+
'get_pipeline_params',
|
|
360
|
+
'set_pipeline_params',
|
|
361
|
+
'clone_pipeline',
|
|
362
|
+
'pipeline_summary',
|
|
363
|
+
# Pipeline (aliases)
|
|
364
|
+
'create_pipe',
|
|
365
|
+
'add_step',
|
|
366
|
+
'execute_pipe',
|
|
367
|
+
'validate_pipe',
|
|
368
|
+
'serialize_pipe',
|
|
369
|
+
'deserialize_pipe',
|
|
370
|
+
'pipe_transform',
|
|
371
|
+
'pipe_fit_transform',
|
|
372
|
+
'get_params',
|
|
373
|
+
'set_params',
|
|
374
|
+
'clone_pipe',
|
|
375
|
+
'pipe_summary',
|
|
376
|
+
# Imbalanced (full names)
|
|
377
|
+
'random_oversampling',
|
|
378
|
+
'random_undersampling',
|
|
379
|
+
'smote_oversampling',
|
|
380
|
+
'tomek_links_undersampling',
|
|
381
|
+
'class_weight_calculator',
|
|
382
|
+
'stratified_sampling',
|
|
383
|
+
'compute_class_distribution',
|
|
384
|
+
'balance_dataset',
|
|
385
|
+
'minority_class_identifier',
|
|
386
|
+
'imbalance_ratio',
|
|
387
|
+
'synthetic_sample_generator',
|
|
388
|
+
'near_miss_undersampling',
|
|
389
|
+
# Imbalanced (aliases)
|
|
390
|
+
'random_oversample',
|
|
391
|
+
'random_undersample',
|
|
392
|
+
'smote',
|
|
393
|
+
'tomek_links',
|
|
394
|
+
'class_weights',
|
|
395
|
+
'stratified_sample',
|
|
396
|
+
'class_dist',
|
|
397
|
+
'balance_data',
|
|
398
|
+
'minority_class',
|
|
399
|
+
'imbalance_ratio_alias',
|
|
400
|
+
'synthetic_sample',
|
|
401
|
+
'near_miss',
|
|
292
402
|
]
|