Skip to content

question about adaboost.

4 messages · Cecilia Lezama, Uwe Ligges

#
Cecilia Lezama wrote:
Well, the misclassification error is

   1 - diag(table) / sum(table)

Uwe Ligges
#
Thanks for your quickly answer. I feel embarrassed but I didn't understand 
it.

1 - diag(table) / sum(table)        Which diagonal? Both of them?

Could you explain it to me with a practical example?

CONFUSION MATRIX

                            Observed Class

Predicted Class             A          P

              A                   138       9

              P                     1         2


 PROBABILITY CONFUSION MATRIX

                                Observed Class

 Predicted Class                 A           P

              A       0.920000000  0.060000000

              P       0.006666667   0.013333333


Many, many thanks!


----- Original Message ----- 
From: "Uwe Ligges" <ligges at statistik.tu-dortmund.de>
To: "Cecilia Lezama" <checha at netgate.com.uy>
Cc: <r-help at r-project.org>
Sent: Tuesday, April 28, 2009 9:42 AM
Subject: Re: [R] question about adaboost.
#
Cecilia Lezama wrote:
Whoops, this meant to be

1 - sum(diag(table)) / sum(table)

i.e. 1 - (138+2)/(138+2+9+1)

Uwe Ligges