-
Notifications
You must be signed in to change notification settings - Fork 14
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
Multilabel Classification method give the same results #47
Comments
What version of atom are you using? That functionality was deprecated in 5.1.0 I believe. I see that the documentation was not updated accordingly, sorry for that. In the latest version the multioutput meta-estimator is assigned by default. Doing atom.run(["RF", MultiOutputClassifier(RandomForestClassifier()), ClassifierChain(RandomForestClassifier())]) |
My version is 5.2.0.
|
I made a mistake. You have to specify in the custom model that the class doesn't need a multilabel wrapper. from sklearn.datasets import make_multilabel_classification
from sklearn.multioutput import ClassifierChain, MultiOutputClassifier
from sklearn.ensemble import RandomForestClassifier
from atom import ATOMClassifier, ATOMModel
X, y = make_multilabel_classification(n_samples=300, n_classes=3, random_state=1)
atom = ATOMClassifier(X, y=y, verbose=2, random_state=1)
chain = ATOMModel(ClassifierChain(RandomForestClassifier()), native_multilabel=True)
multi = ATOMModel(MultiOutputClassifier(RandomForestClassifier()), native_multilabel=True)
atom.run(["rf", chain, multi]) |
Thanks for quick replay. Unfortunately this still don't work. There is no native_multilabel parameter in ATOMModel module.
|
you are right. that's functionality of the You can install |
Yes, it works :) |
Contribution guidelines
Description
I've tried to compare three methods of Multilabel Classification by Random Forest. I wanted to check wich method will be the best MultiOutputClassifier, ClassifierChain or native multilabel RandomForestClassifier. To my surprise, all the results were identical. What is wrong then, since when I do the same calculations using sklearn I get different results. Could you help me.
test.pdf
Expected behaviour
No response
Actual behaviour
No response
Steps to reproduce
No response
Python and package version
import sys; sys.version
import atom; atom.__version__
The text was updated successfully, but these errors were encountered: