摘要: 评价分类器的性能指标一般为分类准确率,其定义是:对于给定的测试数据集,分类器正确分类的样本数与总样本数之比。除此之外还有精确率、召回率和F1值。通常以关注的类为正类,其余类为负类,根据分类器在测试集上的表现可分为4种情况: TP 将正类预测为正类数; FN 将正类预测为负类数; FP 将负类预测为正 阅读全文
posted @ 2019-12-20 09:15 北斗南华 阅读(565) 评论(0) 推荐(0)
摘要: k Nearest Neighbor (kNN) exercise Inline Question 2 We can also use other distance metrics such as L1 distance. For pixel values $p_{ij}^{(k)}$ at loc 阅读全文
posted @ 2019-12-18 11:20 北斗南华 阅读(666) 评论(0) 推荐(0)
摘要: k-Nearest Neighbor (kNN) exercise 开始预测 1 # Now implement the function predict_labels and run the code below: 2 # We use k = 1 (which is Nearest Neighb 阅读全文
posted @ 2019-12-17 17:02 北斗南华 阅读(261) 评论(0) 推荐(0)
摘要: k-Nearest Neighbor (kNN) exercise 1 # Run some setup code for this notebook. 2 3 import random 4 import numpy as np 5 from cs231n.data_utils import lo 阅读全文
posted @ 2019-12-17 13:03 北斗南华 阅读(644) 评论(0) 推荐(0)