-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Pipeline
fernando edited this page Aug 16, 2014
·
5 revisions
The pipeliine object offers a way to concatenate many of the objects in this module in a easy, pain-free way.
Example usage:
from UnbalancedDataset import TomekLinks, UnderSampler, SVM_SMOTE, Pipeline
x, y = ... (your data set)
pip = Pipeline(x, y)
my_pipeline = [TomekLinks(), SVM_SMOTE(svm_args = {'class_weight' = 'auto'}), UnderSampler(ratio = 2)]
x', y' = pip.pipeline(my_pipeline)