Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2797421

Browse files
committed
KNN怎样预测
1 parent 673d4ca commit 2797421

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

‎ch46-机器学习-K近邻/2-使用kNN对手写数字OCR.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@
5151
print(data.files)
5252
train = data['train']
5353
train_labels = data['train_labels']
54+
55+
56+
#TODO 怎样预测数字?

‎ch46-机器学习-K近邻/2-英文字母的OCR.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@
2929
correct = np.count_nonzero(result == labels)
3030
accuracy = correct * 100.0 / 10000
3131
print(accuracy)
32-
#准确率 到了 93.22%。同样你可以 增加 练样本的数 来提 准确 率。
32+
#准确率 到了 93.22%。同样你可以 增加 练样本的数 来提 准确 率。
33+
34+
#TODO 怎样预测字母?

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /