Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What does BOWTrainer::clear() exactly do?

I have seen a problem in my application of trying to find the best classifier on a db: I create the BOWTrainer before the loop where I train the classifier, so I was always adding the new set of descriptors. I am not sure what BOWTrainer::clear() does: it just clears the descriptors set, or it deletes the whole object, so I need to declare another one?

In fact how is better to do: to declare the BOWTrainer object in the loop (so every iteration), or just call its clear() function inside the loop?

click to hide/show revision 2
retagged

updated 2014-07-03 04:58:22 -0600

berak gravatar image

What does BOWTrainer::clear() exactly do?

I have seen a problem in my application of trying to find the best classifier on a db: I create the BOWTrainer before the loop where I train the classifier, so I was always adding the new set of descriptors. I am not sure what BOWTrainer::clear() does: it just clears the descriptors set, or it deletes the whole object, so I need to declare another one?

In fact how is better to do: to declare the BOWTrainer object in the loop (so every iteration), or just call its clear() function inside the loop?