From 753da1de06a764f264c3f5f4817c9190dbe5e021 Mon Sep 17 00:00:00 2001 From: Kevin Markham Date: Thu, 28 May 2020 10:52:54 -0400 Subject: [PATCH] DOC Minor fixes (#17325) --- doc/modules/linear_model.rst | 4 ++-- doc/modules/model_persistence.rst | 2 +- doc/whats_new/v0.23.rst | 4 +--- sklearn/_config.py | 8 ++++---- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/doc/modules/linear_model.rst b/doc/modules/linear_model.rst index 477baca9c4de3..c4767d0cb2d64 100644 --- a/doc/modules/linear_model.rst +++ b/doc/modules/linear_model.rst @@ -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). diff --git a/doc/modules/model_persistence.rst b/doc/modules/model_persistence.rst index 81b3dfce63b99..3c59b7a313a17 100644 --- a/doc/modules/model_persistence.rst +++ b/doc/modules/model_persistence.rst @@ -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 `_:: +persistence model, namely `pickle `_:: >>> from sklearn import svm >>> from sklearn import datasets diff --git a/doc/whats_new/v0.23.rst b/doc/whats_new/v0.23.rst index b089b4d5a1d78..ef53f00fe6c61 100644 --- a/doc/whats_new/v0.23.rst +++ b/doc/whats_new/v0.23.rst @@ -44,8 +44,6 @@ refer to .. include:: changelog_legend.inc -Put the changes in their relevant module. - Enforcing keyword-only arguments -------------------------------- @@ -491,7 +489,7 @@ Changelog :pr:`15622` by :user:`Gregory Morse `. - |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 `. - |Fix| :func:`model_selection.fit_grid_point` is deprecated in 0.23 and will diff --git a/sklearn/_config.py b/sklearn/_config.py index f183203e13228..e333095e817d1 100644 --- a/sklearn/_config.py +++ b/sklearn/_config.py @@ -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 @@ -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