For object recognition propose I've to use a neural network in MATLAB. I have 30 objects and 20 images for each object, so I have 600 input data and 20 different classes. Input matrix is 100x600 and target is 1x600. Input matrix columns is a histogram of keypoints' Hue in 100 bins like this: (m,n)=hist(hue_val,100) that I took m.
If I chose MLP network, how many layers and neurons for those layers are needed, which transfer functions is suitable for each layer?
And for last question, do I need negative samples?
Remember to consider leave-one-out and similar forms cross validation as ways of combating overfitting. Limiting your hidden layer's unit count does this also, but at the cost of representational richness.
Other parameters you haven't mentioned are also very important to any successful ANN application. These include learning rate, error function, annealing schedule, momentum, and weight decay. Setting all of these is more of an art than a science at this point (one of the best arguments against using ANNs vs. support vector machinces), but this link has been a godsend for me in this area.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With