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

feat: Display the model coefficients for linear models #1339

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
76a0eab
chore: Remove skore-ui (#1381)
rouk1 Mar 4, 2025
1c4510c
ci: Fix SlackAPI call (#1380)
jerome-probabl Mar 4, 2025
579fa32
Squashed commit of the following:
sylvaincom Feb 17, 2025
47dcaa6
Delete my_test.py
sylvaincom Feb 17, 2025
97bfb89
mob
sylvaincom Feb 20, 2025
d1bad31
make it work for pipelines
auguste-probabl Feb 20, 2025
3fa3df5
fix repr and help menu
auguste-probabl Feb 20, 2025
2491429
add types
auguste-probabl Feb 20, 2025
33f3f5c
mob
sylvaincom Feb 21, 2025
492096b
Update plot_feature_importance.py
sylvaincom Feb 21, 2025
b1c96ed
in the auto_examples, adding a section for example-driven dev
sylvaincom Feb 21, 2025
c4cda2e
iter
sylvaincom Feb 21, 2025
357181a
Update plot_feature_importance.py
sylvaincom Feb 21, 2025
8b3144c
update typing
auguste-probabl Feb 24, 2025
c0edc70
Make it work for LogisticRegression
auguste-probabl Feb 20, 2025
03bd208
ready for merge: remove example driven dev
sylvaincom Feb 24, 2025
d3a59f2
refine docstring in unit tests
sylvaincom Feb 24, 2025
9453123
deal with unused variables
auguste-probabl Feb 25, 2025
06091ec
stop checking data in tests
auguste-probabl Feb 25, 2025
446a4a1
remove train_test_split from tests
auguste-probabl Feb 25, 2025
80d1d22
factorize regression data to fixture
auguste-probabl Feb 25, 2025
d77c29d
add test for multiclass classification
auguste-probabl Feb 25, 2025
d533742
make _check_has_coef return a function
auguste-probabl Feb 25, 2025
0a38219
rename `model_weights` to `coefficients`
auguste-probabl Feb 25, 2025
2fec727
simplify doctest
auguste-probabl Feb 25, 2025
16614e2
move estimator tests to their own file
auguste-probabl Feb 25, 2025
f1f3a2d
refactor tests
auguste-probabl Feb 25, 2025
e5f8658
refactor dataframe tests
auguste-probabl Feb 25, 2025
77081df
change column names if estimator is classifier
auguste-probabl Feb 25, 2025
c9d1593
add test for multiclass classification for pipeline
auguste-probabl Feb 25, 2025
b3bd7b5
use make_pipeline in tests
auguste-probabl Feb 25, 2025
0c3da65
adding a proper example
sylvaincom Feb 25, 2025
2d7ac6a
Update plot_feature_importance.py
sylvaincom Feb 25, 2025
64eb6be
Update plot_feature_importance.py
sylvaincom Feb 25, 2025
a02f66c
add feature importance API docs
auguste-probabl Feb 25, 2025
c798533
rename fixture
auguste-probabl Feb 25, 2025
af8e842
test `coefficients` for all sklearn possible estimators
auguste-probabl Feb 25, 2025
f24b7fe
example: use ridge instead of linear regression
sylvaincom Feb 26, 2025
4b82524
example: use scikit-learn's train_test_split
sylvaincom Feb 26, 2025
09c1451
example: explaining R2 and RMSE
sylvaincom Feb 26, 2025
6b6a01c
example: more info about impact of scaling
sylvaincom Feb 26, 2025
577b5a3
example: a word obtained the obtained R2 value
sylvaincom Feb 26, 2025
80f327b
example: minor iter
sylvaincom Feb 26, 2025
c8a2e3e
big refacto of the example
sylvaincom Feb 27, 2025
90acef6
fix bug where transforms in pipelines change the features
auguste-probabl Feb 27, 2025
eacf721
add seaborn
auguste-probabl Feb 27, 2025
259875a
Update examples/model_evaluation/plot_feature_importance.py
auguste-probabl Feb 27, 2025
a7c7ea5
example: minor iter
sylvaincom Feb 27, 2025
e4a66c3
Update examples/model_evaluation/plot_feature_importance.py
sylvaincom Feb 27, 2025
47a433e
Update examples/model_evaluation/plot_feature_importance.py
sylvaincom Feb 27, 2025
a573d23
Update examples/model_evaluation/plot_feature_importance.py
sylvaincom Feb 27, 2025
37b3b5c
Update examples/model_evaluation/plot_feature_importance.py
sylvaincom Feb 27, 2025
244f8dd
Update examples/model_evaluation/plot_feature_importance.py
sylvaincom Feb 27, 2025
7361465
example: minor iter
sylvaincom Feb 27, 2025
0f60fe0
example: minor iter
sylvaincom Feb 27, 2025
b8c864d
example: minor iter
sylvaincom Feb 27, 2025
fbb2481
example: minor iter
sylvaincom Feb 27, 2025
98c0b8e
Merge branch 'main' into 1320-featestimatorreport-display-the-feature…
sylvaincom Feb 28, 2025
be64441
example: correct the unscaling?
sylvaincom Feb 28, 2025
b0a9ab1
example: minor iter
sylvaincom Feb 28, 2025
ec36c5c
example: minor iter
sylvaincom Feb 28, 2025
929067b
Merge branch 'main' into 1320-featestimatorreport-display-the-feature…
sylvaincom Mar 3, 2025
97e86e8
Update examples/model_evaluation/plot_feature_importance.py
sylvaincom Mar 3, 2025
74d490e
Update examples/model_evaluation/plot_feature_importance.py
sylvaincom Mar 3, 2025
a94f3d8
Update examples/model_evaluation/plot_feature_importance.py
sylvaincom Mar 3, 2025
5e2e530
example: add SF
sylvaincom Mar 3, 2025
ae46f92
example: change the way the data is loaded
sylvaincom Mar 3, 2025
b36c300
example: add plot barh of the coefficients
sylvaincom Mar 3, 2025
54b6b8b
example: refine the way coefficients are unscaled
sylvaincom Mar 3, 2025
50affd0
example: remove parallel coord plot
sylvaincom Mar 3, 2025
be8c1be
example: minor iter
sylvaincom Mar 3, 2025
6528523
example: plot the prediction error
sylvaincom Mar 3, 2025
c5acc4a
Update examples/model_evaluation/plot_feature_importance.py
sylvaincom Mar 3, 2025
fed7cb8
example: minor iter
sylvaincom Mar 3, 2025
5d0036a
example: plot prediction error #2
sylvaincom Mar 3, 2025
dd9a735
example: explain slicing of pipeline
sylvaincom Mar 3, 2025
e59cf6a
Update examples/model_evaluation/plot_feature_importance.py
sylvaincom Mar 3, 2025
1a9d435
example: refine calculation of n_features_in
sylvaincom Mar 3, 2025
44f2dc7
Merge branch 'main' into 1320-featestimatorreport-display-the-feature…
sylvaincom Mar 3, 2025
068304a
example: refine sort by abs values
sylvaincom Mar 3, 2025
5309dbb
Merge branch '1320-featestimatorreport-display-the-feature-weights-fo…
sylvaincom Mar 3, 2025
4be3c64
example: minor iter
sylvaincom Mar 3, 2025
8b1bcae
Update examples/model_evaluation/plot_feature_importance.py
sylvaincom Mar 3, 2025
7a3556a
example: use RidgeCV
sylvaincom Mar 3, 2025
6216924
example: catch warnings of the grid search
sylvaincom Mar 4, 2025
d0067cd
example: minor iter
sylvaincom Mar 4, 2025
b9c080e
example: apply spline on all features
sylvaincom Mar 4, 2025
e7a3323
example: refining comments and explanations
sylvaincom Mar 4, 2025
1e67b3e
example: refine, add a conclusion
sylvaincom Mar 4, 2025
b0e773c
add test for _check_has_coef
auguste-probabl Mar 4, 2025
34289d0
example: adding some random seeds
sylvaincom Mar 4, 2025
3a2680b
Merge branch '1320-featestimatorreport-display-the-feature-weights-fo…
sylvaincom Mar 4, 2025
f6fdeed
example: move it to end to end section
sylvaincom Mar 4, 2025
98b70ed
Update plot_feature_importance.py
sylvaincom Mar 4, 2025
5ee4996
Merge branch 'main' into 1320-featestimatorreport-display-the-feature…
glemaitre Mar 4, 2025
30cc53d
example: add report names in comparator
sylvaincom Mar 4, 2025
b516a7f
example: refine dict for comparator
sylvaincom Mar 4, 2025
36ea706
example: minor iter
sylvaincom Mar 4, 2025
69eb4f4
Merge branch 'main' into 1320-featestimatorreport-display-the-feature…
sylvaincom Mar 4, 2025
9f2734d
Merge branch 'main' into 1320-featestimatorreport-display-the-feature…
auguste-probabl Mar 4, 2025
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
6 changes: 6 additions & 0 deletions examples/model_evaluation/plot_estimator_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,9 @@ def operational_decision_cost(y_true, y_pred, amount):

# %%
# As expected, since we need to recompute the predictions, it takes more time.

# %%
# .. seealso::
#
# For using the :class:`~skore.EstimatorReport` to inspect your models,
# see :ref:`example_feature_importance`.
Loading