Hi, I'm trying to stack two classifiers. Right now, it's quite simple.
I want to classify paragraphs of text and want to use their page
classification as one of the features (pages can be classified in two
classes).
In other words: I want to use the page classifier's predict_proba as a
feature of the paragraph classifier.
Searching in the scikit-learn docs I didn't manage to find a standard way
to stack classifiers in this way, is there any helper for this task?
I created a wrapper that allows me to use the predict_proba method of a
classifier as a feature. But when I try to cross-validate (via
cross_val_score) the paragraph classifier, the page classifier is reset
(cross_val_score tries to fit all classifiers again).
Sorry for the long text, but I'm wondering if there are better ways to
accomplish this task and I'm still a Machine Learning beginner.
Any help will be appreciated.
Best regards,
José Ricardo
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general