From 59bdd5a8589e38896d992d2bfd3fb7459459c0fe Mon Sep 17 00:00:00 2001 From: Aleksi Sitomaniemi Date: Tue, 25 Sep 2018 12:28:51 +0300 Subject: [PATCH] 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. --- tutorials/03.auto-train-models.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/03.auto-train-models.ipynb b/tutorials/03.auto-train-models.ipynb index 87401fe8..e8d2aadd 100644 --- a/tutorials/03.auto-train-models.ipynb +++ b/tutorials/03.auto-train-models.ipynb @@ -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",