[MRG] Example for multioutput.RegressorChain#15215
Closed
timnon wants to merge 1 commit intoscikit-learn:masterfrom
Closed
[MRG] Example for multioutput.RegressorChain#15215timnon wants to merge 1 commit intoscikit-learn:masterfrom
timnon wants to merge 1 commit intoscikit-learn:masterfrom
Conversation
Contributor
|
@adrinjalali open |
adrinjalali
reviewed
Mar 2, 2020
| >>> 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]] |
Member
There was a problem hiding this comment.
Suggested change
| >>> 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) |
Member
There was a problem hiding this comment.
Suggested change
| >>> chain = RegressorChain(base_estimator=logreg,order=[0,1]).fit(X,Y) | |
| >>> chain = RegressorChain(base_estimator=logreg, order=[0, 1]).fit(X, Y) |
Member
|
@timnon do you plan to continue working on this PR? |
Member
|
take |
|
take |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
Issue #3846
What does this implement/fix? Explain your changes.
Example for
multioutput.RegressorChainAny other comments?
The naming of this class is wrong, it should be
MultiLabelClassifierChain, it is not a regression but a multi-label classification