We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bc7530 commit e305ce2Copy full SHA for e305ce2
charpter6_knn/knn.ipynb
@@ -70,7 +70,7 @@
70
" te = np.square(X).sum(axis=1)\n",
71
" # 训练样本矩阵平方\n",
72
" tr = np.square(X_train).sum(axis=1)\n",
73
- " # 计算欧式距离\n",
+ " # 计算欧氏距离\n",
74
" dists = np.sqrt(-2 * M + tr + np.matrix(te).T) \n",
75
" return dists"
76
]
0 commit comments