Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why did I get the same var_importance ? letter-recognition opencv3.0 gold

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 7 6.3 8 6.3 9 6.3 10 6.3 11 6.3 12 6.3 13 6.3 14 6.3 15 6.3 16 6.3

Why did I get each element of the var_importance have the same var_importance value ? letter-recognition letter_recog.cpp opencv3.0 gold

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 7 6.3

....

`model->setCalculateVarImportance(true);

Mat var_importance = model->getVarImportance(); `

image description 6.3 8 6.3 9 6.3 10 6.3 11 6.3 12 6.3 13 6.3 14 6.3 15 6.3 16 6.3

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

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

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

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