From 3339b8afb213cf4caa93cd7195600c250ed3db9c Mon Sep 17 00:00:00 2001 From: ZTFrom1994 <605288028@qq.com> Date: Wed, 23 May 2018 10:48:39 +0900 Subject: [PATCH] =?UTF-8?q?Update=203.=E5=88=86=E7=B1=BB.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 测试集应该是前60000条记录,这里应该是误写成6000了,还有一处代码 sgd_clf.classes[5]应为sgd_clf.classes_[5] 前面的少了一个下划线。 --- "docs/3.\345\210\206\347\261\273.md" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/docs/3.\345\210\206\347\261\273.md" "b/docs/3.\345\210\206\347\261\273.md" index d45989e..c9f721d 100644 --- "a/docs/3.\345\210\206\347\261\273.md" +++ "b/docs/3.\345\210\206\347\261\273.md" @@ -67,7 +67,7 @@ plt.show() ![图3-1](../images/chapter_3/chapter3.2.jpeg) -先等一下!你总是应该先创建测试集,并且在验证数据之前先把测试集晾到一边。MNIST 数据集已经事先被分成了一个训练集(前 6000 张图片)和一个测试集(最后 10000 张图片) +先等一下!你总是应该先创建测试集,并且在验证数据之前先把测试集晾到一边。MNIST 数据集已经事先被分成了一个训练集(前 60000 张图片)和一个测试集(最后 10000 张图片) ```python X_train, X_test, y_train, y_test = X[:60000], X[60000:], y[:60000], y[60000:] @@ -474,7 +474,7 @@ array([[-311402.62954431, -363517.28355739, -446449.5306454 , 5 >>> sgd_clf.classes_ array([ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9.]) ->>> sgd_clf.classes[5] +>>> sgd_clf.classes_[5] 5.0 ``` -- GitLab