Skip to content

Commit 490312a

Browse files
authored
Update plot_ridge.py
replaced boston housing with california housing
1 parent c6d5ccb commit 490312a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mglearn/plot_ridge.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from sklearn.linear_model import Ridge, LinearRegression
55
from sklearn.model_selection import learning_curve, KFold
66

7-
from .datasets import load_extended_boston
7+
from .datasets import fetch_california_housing
88

99

1010
def plot_learning_curve(est, X, y):
@@ -21,7 +21,7 @@ def plot_learning_curve(est, X, y):
2121

2222

2323
def plot_ridge_n_samples():
24-
X, y = load_extended_boston()
24+
X, y = fetch_california_housing()
2525

2626
plot_learning_curve(Ridge(alpha=1), X, y)
2727
plot_learning_curve(LinearRegression(), X, y)

0 commit comments

Comments
 (0)