First time here? Check out the FAQ!

Ask Your Question
0

SVM: call train() multiple times?

asked Jun 10 '16

RoughHough gravatar image

Hello there!

I'm using openCV's SVM for classification problems (obviously) and I was just wondering how to train it properly. For now, my program reads a number of files with serialised feature vectors and calls CvSVM::train(...) in a for-loop. Is this the correct way to do or do I have to merge all feature vectors into a big one and pass this one then? It's a single SVM object all the time btw.

Thanks and have a great day,

RoughHough

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Jun 11 '16

berak gravatar image

For now, my program reads a number of files with serialised feature vectors and calls CvSVM::train(...) in a for-loop. Is this the correct way to do or do I have to merge all feature vectors into a big one

no, the former is wrong, and the latter is the correct way.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Jun 10 '16

Seen: 397 times

Last updated: Jun 10 '16