10000 DOC Fix FutureWarning in plot_linear_model_coefficient_interpretation… · scikit-learn/scikit-learn@1bf4ebd · GitHub
[go: up one dir, main page]

Skip to content

Commit 1bf4ebd

Browse files
SarahRemusge72mum
andauthored
DOC Fix FutureWarning in plot_linear_model_coefficient_interpretation (#24920)
Co-authored-by: ge72mum <ge72mum@mytum.de>
1 parent 70442b9 commit 1bf4ebd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/inspection/plot_linear_model_coefficient_interpretation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@
330330

331331
# %%
332332
plt.figure(figsize=(9, 7))
333-
sns.stripplot(data=coefs, orient="h", color="k", alpha=0.5)
333+
sns.stripplot(data=coefs, orient="h", palette="dark:k", alpha=0.5)
334334
sns.boxplot(data=coefs, orient="h", color="cyan", saturation=0.5, whis=10)
335335
plt.axvline(x=0, color=".5")
336336
plt.xlabel("Coefficient importance")
@@ -389,7 +389,7 @@
389389

390390
# %%
391391
plt.figure(figsize=(9, 7))
392-
sns.stripplot(data=coefs, orient="h", color="k", alpha=0.5)
392+
sns.stripplot(data=coefs, orient="h", palette="dark:k", alpha=0.5)
393393
sns.boxplot(data=coefs, orient="h", color="cyan", saturation=0.5)
394394
plt.axvline(x=0, color=".5")
395395
plt.title("Coefficient importance and its variability")
@@ -492,7 +492,7 @@
492492

493493
# %%
494494
plt.figure(figsize=(9, 7))
495-
sns.stripplot(data=coefs, orient="h", color="k", alpha=0.5)
495+
sns.stripplot(data=coefs, orient="h", palette="dark:k", alpha=0.5)
496496
sns.boxplot(data=coefs, orient="h", color="cyan", saturation=0.5, whis=10)
497497
plt.axvline(x=0, color=".5")
498498
plt.title("Coefficient variability")
@@ -699,7 +699,7 @@
699699

700700
# %%
701701
plt.figure(figsize=(9, 7))
702-
sns.stripplot(data=coefs, orient="h", color="k", alpha=0.5)
702+
sns.stripplot(data=coefs, orient="h", palette="dark:k", alpha=0.5)
703703
sns.boxplot(data=coefs, orient="h", color="cyan", saturation=0.5, whis=100)
704704
plt.axvline(x=0, color=".5")
705705
plt.title("Coefficient variability")

0 commit comments

Comments
 (0)
0