Skip to content

Commit c360bc7

Browse files
committed
Pushing the docs to dev/ for branch: main, commit 31a75c004d91e909a43a6abb16301a0cfe37a557
1 parent bb476e6 commit c360bc7

File tree

1,223 files changed

+4218
-4218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,223 files changed

+4218
-4218
lines changed
Binary file not shown.

dev/_downloads/57163227aeb4c19ca4c69b87a8d1949c/plot_learning_curve.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ def plot_learning_curve(
179179
X, y = load_digits(return_X_y=True)
180180

181181
title = "Learning Curves (Naive Bayes)"
182-
# Cross validation with 100 iterations to get smoother mean test and train
182+
# Cross validation with 50 iterations to get smoother mean test and train
183183
# score curves, each time with 20% data randomly selected as a validation set.
184-
cv = ShuffleSplit(n_splits=100, test_size=0.2, random_state=0)
184+
cv = ShuffleSplit(n_splits=50, test_size=0.2, random_state=0)
185185

186186
estimator = GaussianNB()
187187
plot_learning_curve(
@@ -190,7 +190,7 @@ def plot_learning_curve(
190190

191191
title = r"Learning Curves (SVM, RBF kernel, $\gamma=0.001$)"
192192
# SVC is more expensive so we do a lower number of CV iterations:
193-
cv = ShuffleSplit(n_splits=10, test_size=0.2, random_state=0)
193+
cv = ShuffleSplit(n_splits=5, test_size=0.2, random_state=0)
194194
estimator = SVC(gamma=0.001)
195195
plot_learning_curve(
196196
estimator, title, X, y, axes=axes[:, 1], ylim=(0.7, 1.01), cv=cv, n_jobs=4

0 commit comments

Comments
 (0)