Ask Your Question
0

How to use CvBoost?

asked 2013-08-05 04:48:08 -0600

CrazySiberianScientist gravatar image

Hello. I have some matrix MxN(M - count of weak classificators, N - count of results weak classificator at each validation image(positives and negatives):

Example:

1 1 1 1 0 0 0 0

1 1 1 0 0 1 0 0

1 0 1 1 1 0 0 0

1 1 1 1 0 0 0 0

1 1 1 1 1 0 0 0

Which tflag for CvBoost should I choose for right work for CvBoost? How to correctly create responses vector?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-08-05 05:09:51 -0600

berak gravatar image

tflag is one of CV_ROW_SAMPLE or CV_COL_SAMPLE

if you put one sample per row of your trainmat, use CV_ROW_SAMPLE and a Mat(num_samples,1,CV32S) for resonses.

per row

  // TrainingMat            responses

  s a m p l e                  1
  s a m p l e                  2
  s a m p l e                  1
  s a m p l e                  2
  s a m p l e                  1

per col

  s s s s s     // trainingmat
  a a a a a
  m m m m m 
  p p p p p
  l l l l l
  e e e e e

  1 2 1 2 1     // responses
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-08-05 04:48:08 -0600

Seen: 368 times

Last updated: Aug 05 '13