bethatkinson / rpart

Recursive Partitioning and Regression Trees
43 stars 23 forks source link

How to interpret xerror of rpart (method="class") when losses are assigned? #65

Open A-Pai opened 3 months ago

A-Pai commented 3 months ago

How to interpret xerror of rpart (method="class") when losses are assigned

image

Strangely initial xerror is extremely small and it is 0.1000 (I see this is 1/loss of class 0), then xerror increases to 2.41, 2.77 and so on. Somehow xerror at the initial node is much much better than rel error!!