Fixed an error on Data Exploration chapter

The sample code comment discusses using a portion of the full dataset to make training faster, suggesting that the following code takes 100 first samples from the dataset. However, the code in repository actually leaves the first 100 items out, and picks the rest of the full set into the evaluated X_digits, Y_digits matrices.
This commit is contained in:
Aleksi Sitomaniemi
2018-09-25 12:28:51 +03:00
committed by GitHub
parent 841287ec10
commit 59bdd5a858

View File

@@ -133,8 +133,8 @@
"digits = datasets.load_digits()\n",
"\n",
"# only take the first 100 rows if you want the training steps to run faster\n",
"X_digits = digits.data[100:,:]\n",
"y_digits = digits.target[100:]\n",
"X_digits = digits.data[:100,:]\n",
"y_digits = digits.target[:100]\n",
"\n",
"# use full dataset\n",
"#X_digits = digits.data\n",