Why each element of the var_importance have the same value ? letter_recog.cpp opencv3.0 gold

asked 2015-10-18 08:02:10 -0600

BY gravatar image

updated 2015-10-20 03:32:29 -0600

Getting output after compiling letter-recognition.cpp of sample code:

The database ./letter-recognition.data is loaded.

Training the classifier ..

Recognition rate: train = 86.2%, test = 82.0%

Number of trees: 100

var# importance (in %):

0 6.3

1 6.3

2 6.3

3 6.3

4 6.3

5 6.3

6 6.3

....

`model->setCalculateVarImportance(true);

Mat var_importance = model->getVarImportance(); `

image description

edit retag flag offensive close merge delete