Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnsembleClassifier with scaled and unscaled data #9

Closed
ibanez4510 opened this issue Jan 12, 2016 · 4 comments
Closed

EnsembleClassifier with scaled and unscaled data #9

ibanez4510 opened this issue Jan 12, 2016 · 4 comments

Comments

@ibanez4510
Copy link

Hello,
I am training and fitting data using different classifieres. For some of them (eg. Multi-layer perceptron) I scale the training and testing matrices using scikits StandardScaler(). For others (eg. Random Forest) I do not scale the data.

I would like to use the EnsembleClassifier and was wondering how to use it with classifiers that were trained with different matrices (scaled vs unscaled).

Thanks!

@rasbt
Copy link
Owner

rasbt commented Jan 12, 2016

Hi,
have you tried to provide classifier-pipelines as input? E.g.,

mlp = Pipeline([('std', StandardScaler()), 
                       ('mlp', MultiLayerPerceptron())])

Pls let me know if it works.

Or in case of the random forest, it may be easiest to train it with the scaled data as well (should yield the same results).

@ibanez4510
Copy link
Author

Thanks for the reply!

I will look into your suggestion

@ibanez4510
Copy link
Author

I get very similar results using scaled data across the board. I can now use the EnsembleClassifier. Thanks again!

@rasbt
Copy link
Owner

rasbt commented Jan 13, 2016

Cool, I am happy to hear that it worked out for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants