cs231n 笔记

自己随便记的,可读性较差。

Lecture2:Image Classification pipeline

def classify_image(image):

      # some magic here?

       return class_label

Data-Driven Approach

  1. Collect a dataset of images and labels
  2. Use Machine Learning to train a classifier
  3. Evaluate the classifier on new images

Example Dataset:CIFAR10

       10 classes

       50 000 training images

       10 000 testing images

Distance Metric to compare images

       L1 distance:曼哈顿

K-Nearest Neighbors

       Instead of copying label from nearest neighbor, take majority vote from K closest points.

Distance Metric

L1(Manhattan)distance曼哈顿距离 L2(Euclidean)distance欧式距离

Hyperparameters

       What is the best value of k to use?

       What is the best distance to use?

       These are hyperparameters: choices about the algorithm that we set rather than learn.

 

作业一:knn

参考:https://blog.csdn.net/qq_28448117/article/details/79399959

           https://www.cnblogs.com/danscarlett/p/9402469.html

遇到的问题:Python中Import Error: no module named 'past'错误以及解决方法

解决办法:https://blog.csdn.net/qq_31282773/article/details/78672584

转载于:https://www.cnblogs.com/woshizhizhang/p/11338422.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值