bethatkinson / rpart

Recursive Partitioning and Regression Trees
46 stars 24 forks source link

how to get the improve value? #59

Open A-Pai opened 7 months ago

A-Pai commented 7 months ago

https://cran.r-project.org/web/packages/rpart/vignettes/longintro.pdf

p20: image

it is said in p22: image

I know the default impurity index is gini,but I can not get to know exactly how to calculate it

A-Pai commented 7 months ago

See p58

image