3 ms·
Since you seem to understand what he is saying, can you explain to me how the per layer objective function looks like? I don't get what he means by inserting t
by goethes_kind 4y ago
Since you seem to understand what he is saying, can you explain to me how the per layer objective function looks like?
I don't get what he means by inserting the label into the input and what labels he is using per layer.
- LudwigNagasena 4y agoA model is a function F that minimizes error in y_i = F(X_i) + error. Inserting a label simply means a function F(X_i,y_j). Then you optimize it in some way to separate true labels from false label, e.g. F(X_i, y_j) = (y_i==y_j)-(y_i!=y_j) + error.
- bjourne 4y agoYou train the network to detect correlations between the values of the ten first pixels and the rest of the image. Imagine you have a bunch of images of digits. For images with digit three you set the third pixel to white, for images of the digit four, you set the fourth pixel to white, and so on (actually, zero-indexing so fourth and fifth pixel for digit three and four but whatever). The other nine pixels among the first ten you set to black. These are positive samples and training the network with them will make it output a big number when it encounters them. Then you swap the pixels so that the images with the digit three has the fourth pixel set to white and the images with the digit four has the third pixel set to white. These are negative samples and they cause the network to output a small number. Thus, the only difference between positive and negative samples is the location of the white pixel. So for an image you want to classify you run it through the network ten times and each time shifting the location of the white pixel. The location for which the network outputs the biggest number is the predicted class. Obviously, this method is problematic if you have thousands of labels or if your network is not a classifier.