Skip to content

Commit 3010850

Browse files
committed
change samples to examples
1 parent 996f958 commit 3010850

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ch02/ch02.ipynb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,10 @@
287287
"\n",
288288
" Parameters\n",
289289
" ----------\n",
290-
" X : {array-like}, shape = [n_samples, n_features]\n",
291-
" Training vectors, where n_samples is the number of samples and\n",
290+
" X : {array-like}, shape = [n_examples, n_features]\n",
291+
" Training vectors, where n_examples is the number of examples and\n",
292292
" n_features is the number of features.\n",
293-
" y : array-like, shape = [n_samples]\n",
293+
" y : array-like, shape = [n_examples]\n",
294294
" Target values.\n",
295295
"\n",
296296
" Returns\n",
@@ -744,7 +744,7 @@
744744
" plt.xlim(xx1.min(), xx1.max())\n",
745745
" plt.ylim(xx2.min(), xx2.max())\n",
746746
"\n",
747-
" # plot class samples\n",
747+
" # plot class examples\n",
748748
" for idx, cl in enumerate(np.unique(y)):\n",
749749
" plt.scatter(x=X[y == cl, 0], \n",
750750
" y=X[y == cl, 1],\n",
@@ -916,10 +916,10 @@
916916
"\n",
917917
" Parameters\n",
918918
" ----------\n",
919-
" X : {array-like}, shape = [n_samples, n_features]\n",
920-
" Training vectors, where n_samples is the number of samples and\n",
919+
" X : {array-like}, shape = [n_examples, n_features]\n",
920+
" Training vectors, where n_examples is the number of examples and\n",
921921
" n_features is the number of features.\n",
922-
" y : array-like, shape = [n_samples]\n",
922+
" y : array-like, shape = [n_examples]\n",
923923
" Target values.\n",
924924
"\n",
925925
" Returns\n",
@@ -1178,7 +1178,7 @@
11781178
" Weights after fitting.\n",
11791179
" cost_ : list\n",
11801180
" Sum-of-squares cost function value averaged over all\n",
1181-
" training samples in each epoch.\n",
1181+
" training examples in each epoch.\n",
11821182
"\n",
11831183
" \n",
11841184
" \"\"\"\n",
@@ -1194,10 +1194,10 @@
11941194
"\n",
11951195
" Parameters\n",
11961196
" ----------\n",
1197-
" X : {array-like}, shape = [n_samples, n_features]\n",
1198-
" Training vectors, where n_samples is the number of samples and\n",
1197+
" X : {array-like}, shape = [n_examples, n_features]\n",
1198+
" Training vectors, where n_examples is the number of examples and\n",
11991199
" n_features is the number of features.\n",
1200-
" y : array-like, shape = [n_samples]\n",
1200+
" y : array-like, shape = [n_examples]\n",
12011201
" Target values.\n",
12021202
"\n",
12031203
" Returns\n",
@@ -1401,7 +1401,7 @@
14011401
"name": "python",
14021402
"nbconvert_exporter": "python",
14031403
"pygments_lexer": "ipython3",
1404-
"version": "3.7.3"
1404+
"version": "3.7.1"
14051405
}
14061406
},
14071407
"nbformat": 4,

0 commit comments

Comments
 (0)