Skip to content

Commit

Permalink
DOC Minor fixes (scikit-learn#17325)
Browse files Browse the repository at this point in the history
  • Loading branch information
justmarkham authored May 28, 2020
1 parent 6c3e179 commit 753da1d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions doc/modules/linear_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -997,8 +997,8 @@ Examples of use cases include:
* Risk modeling / insurance policy pricing: number of claim events /
policyholder per year (Poisson), cost per event (Gamma), total cost per
policyholder per year (Tweedie / Compound Poisson Gamma).
* Predictive maintenance: number of production interruption events per year:
Poisson, duration of interruption: Gamma, total interruption time per year
* Predictive maintenance: number of production interruption events per year
(Poisson), duration of interruption (Gamma), total interruption time per year
(Tweedie / Compound Poisson Gamma).


Expand Down
2 changes: 1 addition & 1 deletion doc/modules/model_persistence.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Persistence example
-------------------

It is possible to save a model in scikit-learn by using Python's built-in
persistence model, namely `pickle <https://docs.python.org/2/library/pickle.html>`_::
persistence model, namely `pickle <https://docs.python.org/3/library/pickle.html>`_::

>>> from sklearn import svm
>>> from sklearn import datasets
Expand Down
4 changes: 1 addition & 3 deletions doc/whats_new/v0.23.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ refer to

.. include:: changelog_legend.inc

Put the changes in their relevant module.

Enforcing keyword-only arguments
--------------------------------

Expand Down Expand Up @@ -491,7 +489,7 @@ Changelog
:pr:`15622` by :user:`Gregory Morse <GregoryMorse>`.

- |Fix| :func:`model_selection.cross_val_predict` supports
`method="predict_proba"` when `y=None`.:pr:`15918` by
`method="predict_proba"` when `y=None`. :pr:`15918` by
:user:`Luca Kubin <lkubin>`.

- |Fix| :func:`model_selection.fit_grid_point` is deprecated in 0.23 and will
Expand Down
8 changes: 4 additions & 4 deletions sklearn/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def set_config(assume_finite=None, working_memory=None,
.. versionadded:: 0.21
display : {'text', 'diagram'}, optional
If 'diagram', estimators will be displayed as text in a jupyter lab
of notebook context. If 'text', estimators will be displayed as
If 'diagram', estimators will be displayed as a diagram in a Jupyter
lab or notebook context. If 'text', estimators will be displayed as
text. Default is 'text'.
.. versionadded:: 0.23
Expand Down Expand Up @@ -111,8 +111,8 @@ def config_context(**new_config):
Default changed from False to True.
display : {'text', 'diagram'}, optional
If 'diagram', estimators will be displayed as text in a jupyter lab
of notebook context. If 'text', estimators will be displayed as
If 'diagram', estimators will be displayed as a diagram in a Jupyter
lab or notebook context. If 'text', estimators will be displayed as
text. Default is 'text'.
.. versionadded:: 0.23
Expand Down

0 comments on commit 753da1d

Please sign in to comment.