search for: unexpectecly

Displaying 1 result from an estimated 1 matches for "unexpectecly".

Did you mean: unexpectebly
2009 Apr 30
1
unexpected behavior of rpart 3.1-43, loss matrix
Hi, I just noticed that rpart behaves unexpectecly, when performing classification learning and specifying a loss matrix. if the response variable y is a factor and if not all levels of the factor occur in the observations, rpart exits with an error: > df=data.frame(attr=1:5,class=factor(c(2,3,1,5,3),levels=1:6)) > rpart(class~attr,df,parm...