How to train a svm?
I have three types of images namely, happy, sad and bored which contain a face corresponding to the each emotion. What kind of operation has to be done before the training? Can anyone provide me some reference code about training a svm?