Skip to content
fernando edited this page Aug 16, 2014 · 5 revisions

Pipeline

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)

Clone this wiki locally