Skip to content

Commit

Permalink
DOC fix default values in isotonic module (#16198)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrinjalali authored and glemaitre committed Jan 27, 2020
1 parent d67647f commit a429bd5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sklearn/isotonic.py
Expand Up @@ -91,10 +91,10 @@ def isotonic_regression(y, sample_weight=None, y_min=None, y_max=None,
Parameters
----------
y : iterable of floats
y : array-like of shape (n_samples,)
The data.
sample_weight : iterable of floats, optional, default: None
sample_weight : array-like of shape (n_samples,), default=None
Weights on each point of the regression.
If None, weight is set to 1 (equal weights).
Expand Down Expand Up @@ -160,21 +160,21 @@ class IsotonicRegression(RegressorMixin, TransformerMixin, BaseEstimator):
Parameters
----------
y_min : optional, default: None
y_min : float, default=None
If not None, set the lowest value of the fit to y_min.
y_max : optional, default: None
y_max : float, default=None
If not None, set the highest value of the fit to y_max.
increasing : boolean or string, optional, default: True
increasing : bool or string, default=True
If boolean, whether or not to fit the isotonic regression with y
increasing or decreasing.
The string value "auto" determines whether y should
increase or decrease based on the Spearman correlation estimate's
sign.
out_of_bounds : string, optional, default: "nan"
out_of_bounds : str, default="nan"
The ``out_of_bounds`` parameter handles how x-values outside of the
training domain are handled. When set to "nan", predicted y-values
will be NaN. When set to "clip", predicted y-values will be
Expand Down

0 comments on commit a429bd5

Please sign in to comment.