8000 Update plot_logistic_path.py · scikit-learn/scikit-learn@8438534 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8438534

Browse files
authored
Update plot_logistic_path.py
making the '# ####' comment line to '# %%' type and making a header for demo path functions. Also made a header with '# %%' type for author and license. Thought also about making author and license into note style but header seemed better.
1 parent 8d6d7d9 commit 8438534

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

examples/linear_model/plot_logistic_path.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,15 @@
2525
2626
"""
2727

28-
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
29-
# License: BSD 3 clause
28+
# %%
29+
# Author
30+
# ---------------------------------------------------
31+
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
32+
33+
# %%
34+
# License
35+
# ---------------------------------------------------
36+
# BSD 3 clause
3037

3138
from time import time
3239
import numpy as np
@@ -45,8 +52,9 @@
4552

4653
X /= X.max() # Normalize X to speed-up convergence
4754

48-
# #############################################################################
55+
# %%
4956
# Demo path functions
57+
# ---------------------------------------------------
5058

5159
cs = l1_min_c(X, y, loss="log") * np.logspace(0, 7, 16)
5260

0 commit comments

Comments
 (0)
0