Got an error when re-training SVM.

asked 2015-04-19 23:33:22 -0600

ajman gravatar image

I have already trained and saved a SVM classifier file called svm.yml. But when I tried to add one more category to that, this error came out: Bad argument (There is only a single class) in cvPreprocessCategoricalResponse

Does the svm train support a "re-training" in which I append or add additional training vectors and labels to it? I really need to know that. Any help is appreciated. Thanks.

edit retag flag offensive close merge delete

Comments

2

"Does the svm train support a "re-training ?" - no, it clears all internal data, when you call train()

berak gravatar imageberak ( 2015-04-20 02:17:41 -0600 )edit

Do you know why this error appears? I have same problem. And i don't think it is related to re-training.

waschbaer gravatar imagewaschbaer ( 2017-05-23 07:04:10 -0600 )edit

@waschbaer, please do not post answers, if you have a question or comment.

also, have a sharp look at it , again, it is not the same error !)

berak gravatar imageberak ( 2017-05-23 07:29:49 -0600 )edit