-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG] Example for multioutput.RegressorChain #15215
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
[MRG] Example for multioutput.RegressorChain #15215
Conversation
@adrinjalali open |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>>> from sklearn.multioutput import RegressorChain | ||
>>> from sklearn.linear_model import LogisticRegression | ||
>>> logreg = LogisticRegression(solver='lbfgs',multi_class='multinomial') | ||
>>> X, Y = [[1,0],[0,1],[1,1]], [[0,2],[1,1],[2,0]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>>> X, Y = [[1,0],[0,1],[1,1]], [[0,2],[1,1],[2,0]] | |
>>> X, Y = [[1, 0], [0, 1], [1, 1]], [[0, 2], [1, 1], [2, 0]] |
>>> from sklearn.linear_model import LogisticRegression | ||
>>> logreg = LogisticRegression(solver='lbfgs',multi_class='multinomial') | ||
>>> X, Y = [[1,0],[0,1],[1,1]], [[0,2],[1,1],[2,0]] | ||
>>> chain = RegressorChain(base_estimator=logreg,order=[0,1]).fit(X,Y) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>>> chain = RegressorChain(base_estimator=logreg,order=[0,1]).fit(X,Y) | |
>>> chain = RegressorChain(base_estimator=logreg, order=[0, 1]).fit(X, Y) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrinjalali no, I don't think so
@timnon do you plan to continue working on this PR? |
take |
take |
Reference Issues/PRs
Issue #3846
What does this implement/fix? Explain your changes.
Example for
multioutput.RegressorChain
Any other comments?
The naming of this class is wrong, it should be
MultiLabelClassifierChain
, it is not a regression but a multi-label classification