"ntrees" Mismatch in CvBoost:write() method (Bug #2082)
Description
I found a case in CvBoost::write() that after the classifier was trained, the weak->total field holds the value 1 but the params.weak_count holds the default value 100. The write method writes the value 100 for "ntrees" and later on writes only 1 tree to the ascii file. Upon loading the model, the CvBoost::read reports an error "The number of trees stored does not match <ntrees> tag value". I think that the fixing the bug should involve writing the real number of trees instead of the value from the params structure.
History
Updated by Maria Dimashova over 12 years ago
Thanks, fixed in r8866