10000 FIX correct some typo from #19859 by glemaitre · Pull Request #20691 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

FIX correct some typo from #19859 #20691

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

Merged
merged 1 commit into from
Aug 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sklearn/ensemble/_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,9 @@ def predict_log_proba(self, X):

return proba

def _more_tags(self):
return {"multilabel": True}


class ForestRegressor(RegressorMixin, BaseForest, metaclass=ABCMeta):
"""
Expand Down
3 changes: 1 addition & 2 deletions sklearn/neural_network/_multilayer_perceptron.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Jiyuan Qian
# License: BSD 3 clause

from tkinter.tix import Tree
import numpy as np

from abc import ABCMeta, abstractmethod
Expand Down Expand Up @@ -1252,7 +1251,7 @@ def predict_proba(self, X):
return y_pred

def _more_tags(self):
return {"multilabel": Tree}
return {"multilabel": True}


class MLPRegressor(RegressorMixin, BaseMultilayerPerceptron):
Expand Down
0