File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 30
30
31
31
from sklearn .linear_model import ARDRegression , LinearRegression
32
32
33
- # #############################################################################
33
+ # %%
34
34
# Generating simulated data with Gaussian weights
35
35
36
36
# Parameters of the example
51
51
# Create the target
52
52
y = np .dot (X , w ) + noise
53
53
54
- # #############################################################################
54
+ # %%
55
55
# Fit the ARD Regression
56
56
clf = ARDRegression (compute_score = True )
57
57
clf .fit (X , y )
58
58
59
59
ols = LinearRegression ()
60
60
ols .fit (X , y )
61
61
62
- # #############################################################################
62
+ # %%
63
63
# Plot the true weights, the estimated weights, the histogram of the
64
64
# weights, and predictions with standard deviations
65
65
plt .figure (figsize = (6 , 5 ))
You can’t perform that action at this time.
0 commit comments