vlfeat / matconvnet

MatConvNet: CNNs for MATLAB
Other
1.4k stars 753 forks source link

Using MatConvNet for a regression problem #924

Open zwx8981 opened 7 years ago

zwx8981 commented 7 years ago

Hi, I want to train a networks for predicting the quality of an image (Image Quality Assessment). Hence, the output will be a single value. I've carefully checked the issues and already found useful information about how to implement the necessary customized loss layer such as L2-loss, L1-loss etc. However, it still not clear how should I change the error function in cnn_train.m.( Obviously, the error function should be neither the case of 'multi-class' nor 'binary-class'). Intuitively, the error should be the difference between the predicted quality score of the input image and the label (real quality score of this image). Any help would be deeply appreciated !

zcy5417 commented 7 years ago

hi!you can see Matconvnet tutorial(regression),the error function can be written by yourself.The error type actually is "none".