"ntrees" Mismatch in CvBoost:write() method (Bug #2082)


Added by Gonen Raveh over 12 years ago. Updated over 12 years ago.


Status:Done Start date:2012-06-25
Priority:Normal Due date:
Assignee:Maria Dimashova % Done:

0%

Category:ml
Target version:2.4.2 Estimated time:2.00 hours
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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.


Associated revisions

Revision d56b7719
Added by Maria Dimashova over 12 years ago

fixed #2082

Revision 4eb9b9d6
Added by Roman Donchenko about 11 years ago

Merge pull request #2082 from asmorkalov:dynamicuda_internal_fix

History

Updated by Maria Dimashova over 12 years ago

Thanks, fixed in r8866

Also available in: Atom PDF