Skip to content

[MRG] Fix docstrings to Numpy format for LabelBinarizer #15440 #15460

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

Closed
wants to merge 8 commits into from
Closed
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
12 changes: 7 additions & 5 deletions sklearn/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def fit_predict(self, X, y=None):
X : ndarray, shape (n_samples, n_features)
Input data.

y : Ignored
y : None
Not used, present for API consistency by convention.

Returns
Expand Down Expand Up @@ -539,8 +539,9 @@ def fit_transform(self, X, y=None, **fit_params):
"""
Fit to data, then transform it.

Fits transformer to X and y with optional parameters fit_params
and returns a transformed version of X.
Fits transformer to X and y with
optional parameters fit_params and returns a transformed
version of X.

Parameters
----------
Expand Down Expand Up @@ -591,7 +592,8 @@ class OutlierMixin:
_estimator_type = "outlier_detector"

def fit_predict(self, X, y=None):
"""Perform fit on X and returns labels for X.
"""
Perform fit on X and returns labels for X.

Returns -1 for outliers and 1 for inliers.

Expand All @@ -600,7 +602,7 @@ def fit_predict(self, X, y=None):
X : ndarray, shape (n_samples, n_features)
Input data.

y : Ignored
y : None
Not used, present for API consistency by convention.

Returns
Expand Down
Loading