

























Task: assigning an input image one label from a fixed set of categories
Images are defined as tensors of integers between [0,255], e.g. 800 x 600 x 3
Challenges:
A good image classification model must be invariant to the cross product of all these variations, while simultaneously retaining sensitivity to the inter-class variations.
The data-driven approach: first accumulating a training dataset of labeled images, then develop learning algorithms to learn about them.
The image classification pipeline:
Here is the English translation of your content.
L1 Distance is the sum of the absolute values of the differences between corresponding dimensions of two vectors. The calculation formula is:
L1(X,Y)=∑i=1n∣xi−yi∣=∣x1−y1∣+∣x2−y2∣+...+∣xn−yn∣L1(X, Y) = \sum_{i=1}^{n} |x_i - y_i| = |x_1 - y_1| + |x_2 - y_2| + ... + |x_n - y_n|
L2 Distance is the square root of the sum of the squared differences between corresponding dimensions of two vectors. This is what we commonly refer to as the straight-line distance between two points. The calculation formula is:
L2(X,Y)=∑i=1n(xi−yi)2=(x1−y1)2+(x2−y2)2+...+(xn−yn)2L2(X, Y) = \sqrt{\sum_{i=1}^{n} (x_i - y_i)^2} = \sqrt{(x_1 - y_1)^2 + (x_2 - y_2)^2 + ... + (x_n - y_n)^2}
Note on L2: Squaring amplifies values, thereby magnifying the influence of outliers.
For evaluation, we use accuracy, which measures the fraction of predictions that were correct.
The idea: we will find the top k closest images, and have them vote on the label of the test image.
It’s often not obvious what values/settings one should choose for hyperparameters.
We cannot use the test set for the purpose of tweaking hyperparameters.
-> Split your training set into training set and a validation set. Use validation set to tune all hyperparameters. At the end run a single time on the test set and report performance.
Cross-validation: iterating over different validation sets and averaging the performance across these.

此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。