Skip to content
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

[MRG] DOC Add example about interpretation of coefficients of linear models #15706

Merged
merged 102 commits into from
Mar 10, 2020
Merged
Show file tree
Hide file tree
Changes from 97 commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
a8fa2c4
Add example on interpretation of linear model coefficients.
cmarmo Nov 18, 2019
407439c
Add coefficient instability.
cmarmo Nov 18, 2019
c75ce26
Merge branch 'master' into lincoeffinterpexample
cmarmo Nov 19, 2019
e70b5aa
Working on coefficient stability
cmarmo Nov 19, 2019
9ace87c
Merge branch 'master' into lincoeffinterpexample
cmarmo Nov 21, 2019
e5eb09b
Fix plot properties.
cmarmo Nov 21, 2019
dc3fca8
Rearrange plot. Introduce more dataset inspection.
cmarmo Nov 22, 2019
8600507
Fix lint issues.
cmarmo Nov 22, 2019
159d028
Fix overindentation.
cmarmo Nov 22, 2019
43125fa
Fix underindentation :) .
cmarmo Nov 22, 2019
9df008a
Add seaborn in build doc conda environment.
cmarmo Nov 22, 2019
da23762
Remove matplotlib logger (too recent for build doc-min-dependencies?).
cmarmo Nov 22, 2019
c875e4b
Change boxenplot to boxplot to avoid warnings.
cmarmo Nov 25, 2019
6dcd6bc
Remove debug lines.
cmarmo Nov 25, 2019
9bdff51
Fix 'Invalid rgb arg C0' Error for doc min dependencies build.
cmarmo Nov 25, 2019
8f93d95
Merge branch 'master' into lincoeffinterpexample
cmarmo Nov 28, 2019
d152cd1
Trigger CI
cmarmo Nov 28, 2019
46ada5d
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Dec 3, 2019
7bfd0c7
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Dec 3, 2019
c023cff
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Dec 3, 2019
a29fa69
Merge branch 'master' into lincoeffinterpexample
cmarmo Dec 3, 2019
64380b2
Add seaborn in doc dependencies, fix easy comments.
cmarmo Dec 4, 2019
4123452
Merge branch 'master' into lincoeffinterpexample
cmarmo Dec 5, 2019
b8cd2c1
Add intersphinx_mapping for seaborn. Address some of the comments.
cmarmo Dec 5, 2019
a8b2f39
Address some comments. test_trai_split moved above.
cmarmo Dec 9, 2019
8e04963
Merge branch 'master' into lincoeffinterpexample
cmarmo Dec 9, 2019
d7392f8
Fix lint error.
cmarmo Dec 9, 2019
916736c
Fix trailing space.
cmarmo Dec 9, 2019
2d2244e
Fix some comments.
cmarmo Dec 9, 2019
637233d
Merge branch 'master' into lincoeffinterpexample
cmarmo Dec 10, 2019
ef0593f
Add r2 score and alpha discussion. Address some other comments.
cmarmo Dec 10, 2019
ec9b982
Fix lint error.
cmarmo Dec 10, 2019
f33cfdd
Fix lint error.. again.
cmarmo Dec 10, 2019
42e0af0
Merge branch 'master' into lincoeffinterpexample
cmarmo Dec 12, 2019
9ad4952
Address all comments but big ones.
cmarmo Dec 12, 2019
b01892e
Fix lint issue. :(
cmarmo Dec 12, 2019
3bfeda2
Fix some new comments and start discussion about dataset normalisation.
cmarmo Dec 12, 2019
b539dbb
Add comparison between scaled and unscaled data analysis. Address som…
cmarmo Dec 13, 2019
730547a
More discussion about feature normalization.
cmarmo Dec 16, 2019
2d82432
Cleaning marginal and conditional concepts.
cmarmo Dec 16, 2019
4b02e1f
Rewrite introduction.
cmarmo Dec 20, 2019
c722102
Minor rephrasing.
cmarmo Dec 20, 2019
feaedd2
Fix white spaces.
cmarmo Dec 20, 2019
8079aac
Merge branch 'master' into lincoeffinterpexample
cmarmo Jan 9, 2020
f65670c
Explain coefficient scaling by multiplication.
cmarmo Jan 9, 2020
a767eb3
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Jan 9, 2020
4477ae0
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Jan 9, 2020
d5b0953
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Jan 9, 2020
8da36af
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Jan 9, 2020
41209ce
Merge branch 'master' into lincoeffinterpexample
cmarmo Jan 14, 2020
abe46af
Address some comments.
cmarmo Jan 14, 2020
b7587ba
Add toc. Change section levels. Add definition of marginal dependence.
cmarmo Jan 14, 2020
27624e9
Merge branch 'master' into lincoeffinterpexample
cmarmo Jan 15, 2020
e0c121e
Add definition of conditional dependence. More details about scaling …
cmarmo Jan 15, 2020
fff0f5d
Fix lint error.
cmarmo Jan 15, 2020
e010bee
Merge branch 'master' into lincoeffinterpexample
cmarmo Jan 31, 2020
7351fe7
Add regularization discussion.
cmarmo Jan 31, 2020
d2e20b5
Merge branch 'master' into lincoeffinterpexample
cmarmo Feb 3, 2020
53a9b5b
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
77f9cd4
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
43ad119
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
521fdd3
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
8d42670
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
81c1c34
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
0d968d8
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
7cd9701
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
54a00a0
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
56de152
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
2a9b953
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
62360af
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
24d1981
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 3, 2020
d0aaab0
Merge branch 'lincoeffinterpexample' of https://github.com/cmarmo/sci…
cmarmo Feb 3, 2020
07f708c
Address some comments.
cmarmo Feb 3, 2020
17f8201
Fix lint errors.
cmarmo Feb 3, 2020
05a02b1
Add marginal regressions in pairplot.
cmarmo Feb 4, 2020
66abf43
Explicit discussion about coefficient multiplication.
cmarmo Feb 4, 2020
dc560a4
Fix trailing spaces.
cmarmo Feb 4, 2020
662a795
Add plot titles, explicit discussion about coeffitient scaling.
cmarmo Feb 5, 2020
cbcbb22
Finalize Lasso discussion. Add link to the example in UG.
cmarmo Feb 5, 2020
c993af8
Fix lint errors.
cmarmo Feb 5, 2020
9af1900
Merge branch 'master' into lincoeffinterpexample
cmarmo Feb 24, 2020
12c83f9
Removing OrdinalEncoder.
cmarmo Feb 24, 2020
a71baaa
Removing R2 from logarithmic models.
cmarmo Feb 24, 2020
fa0b41c
Fix lint errors.
cmarmo Feb 24, 2020
97b4f90
Add details on non-normalized model.
cmarmo Feb 25, 2020
96dec51
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Feb 25, 2020
bc37c3e
Address some comments.
cmarmo Feb 25, 2020
cf576d7
Merge branch 'master' into lincoeffinterpexample
cmarmo Feb 27, 2020
6815802
More details on Ridge with regularization.
cmarmo Feb 27, 2020
12fe690
Fix linting error.
cmarmo Feb 27, 2020
4f12268
Make explicit the comparison between pairwise plot and coefficients o…
cmarmo Feb 28, 2020
5790006
Add summary.
cmarmo Feb 28, 2020
4e3bb4a
Fix linting error.
cmarmo Feb 28, 2020
ead7a8c
Merge branch 'master' into lincoeffinterpexample
cmarmo Mar 10, 2020
fcff805
Fix OneHotEncoder. Address last comments.
cmarmo Mar 10, 2020
8e11386
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Mar 10, 2020
2e89d9c
Update examples/inspection/plot_linear_model_coefficient_interpretati…
cmarmo Mar 10, 2020
d07181d
Address comments.
cmarmo Mar 10, 2020
4f97c06
Add dataframe css.
cmarmo Mar 10, 2020
a2f29bc
Fix lint errors.
cmarmo Mar 10, 2020
2d2f6df
Update plot_linear_model_coefficient_interpretation.py
glemaitre Mar 10, 2020
ffd06d7
PEP8
glemaitre Mar 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion build_tools/circle/build_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ conda create -n $CONDA_ENV_NAME --yes --quiet python="${PYTHON_VERSION:-*}" \
cython="${CYTHON_VERSION:-*}" pytest coverage \
matplotlib="${MATPLOTLIB_VERSION:-*}" sphinx=2.1.2 pillow \
scikit-image="${SCIKIT_IMAGE_VERSION:-*}" pandas="${PANDAS_VERSION:-*}" \
joblib memory_profiler packaging
joblib memory_profiler packaging seaborn
cmarmo marked this conversation as resolved.
Show resolved Hide resolved

source activate testenv
pip install sphinx-gallery
Expand Down
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
'matplotlib': ('https://matplotlib.org/', None),
'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
'joblib': ('https://joblib.readthedocs.io/en/latest/', None),
'seaborn': ('https://seaborn.pydata.org/', None),
}

v = parse(release)
Expand Down
3 changes: 2 additions & 1 deletion doc/developers/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,8 @@ the development version.

Building the documentation requires installing some additional packages::

pip install sphinx sphinx-gallery numpydoc matplotlib Pillow pandas scikit-image packaging
pip install sphinx sphinx-gallery numpydoc matplotlib Pillow pandas \
scikit-image packaging seaborn

To build the documentation, you need to be in the ``doc`` folder::

Expand Down
4 changes: 4 additions & 0 deletions doc/inspection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ predictions from a model and what affects them. This can be used to
evaluate assumptions and biases of a model, design a better model, or
to diagnose issues with model performance.

.. topic:: Examples:

* :ref:`sphx_glr_auto_examples_inspection_plot_linear_model_coefficient_interpretation.py`

.. toctree::

modules/partial_dependence
Expand Down
3 changes: 2 additions & 1 deletion doc/modules/linear_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ a linear kernel.

* :ref:`sphx_glr_auto_examples_linear_model_plot_ridge_path.py`
* :ref:`sphx_glr_auto_examples_text_plot_document_classification_20newsgroups.py`

* :ref:`sphx_glr_auto_examples_inspection_plot_linear_model_coefficient_interpretation.py`

Ridge Complexity
----------------
Expand Down Expand Up @@ -232,6 +232,7 @@ computes the coefficients along the full path of possible values.

* :ref:`sphx_glr_auto_examples_linear_model_plot_lasso_and_elasticnet.py`
* :ref:`sphx_glr_auto_examples_applications_plot_tomography_l1_reconstruction.py`
* :ref:`sphx_glr_auto_examples_inspection_plot_linear_model_coefficient_interpretation.py`


.. note:: **Feature selection with Lasso**
Expand Down