Second lesson-data-driven APPROACH:KNN and linear classifier category pictures

Source: Internet
Author: User

2017-08-12

1. Image classification is the basis of many CV tasks;

2. Picture classification to face a lot of problems, than the film is obscured, the same animal has many kinds of colors, shapes and so on, the algorithm needs to be strong enough;

3. It is very difficult to write the program directly for image classification, the common method is the data driven method:

4.KNN: The focus is to select the value of K, you can take the cross-validation method to find the best K value;

At the same time, the distance representation also has a concentration method, such as Euclidean distance, Manhattan distance:

5. Then from KNN, the general function model is introduced, that is, to map a picture into several categories of possible numerical scores, the highest is the category of the picture belongs to:

Note: The x here is a 3072-dimensional vector, function f is to map 3072 dimensions to 10-dimensional functions, 10 represents the last possible category of 10, of course, sometimes need to consider the offset b,bias;

Example:

6. Next time focus on the loss function loss functions, as well as the optimization process, that is, to find the minimum parameter value of the loss function W, finally extended to other classifiers, neural networks, convolutional neural networks;

Second lesson-data-driven APPROACH:KNN and linear classifier category pictures

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.