Re: [R] randomForest out of bag prediction

2019-01-13 Thread Michael Mayer
accuracies are not unexpected. Gesendet von Mail für Windows 10 Von: Witold E Wolski Gesendet: Samstag, 12. Januar 2019 18:56 An: r-help@r-project.org Betreff: [R] randomForest out of bag prediction Hello, I am just not sure what the predict.RandomForest function is doing... I confused. I would expect

Re: [R] randomForest out of bag prediction

2019-01-12 Thread Peter Langfelder
See inline. On Sat, Jan 12, 2019 at 9:56 AM Witold E Wolski wrote: > ypred_oob <- predict(diachp.rf) AFAIK these are, indeed, the out-of-bag predictions. > dataX <- data %>% select(-quality) # remove response. > ypred <- predict( diachp.rf, dataX ) These are not out of bag predictions. dataX

Re: [R] randomForest out of bag prediction

2019-01-12 Thread Bert Gunter
Off topic. But see here: https://stats.stackexchange.com/questions/61405/random-forest-and-prediction -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sa

[R] randomForest out of bag prediction

2019-01-12 Thread Witold E Wolski
Hello, I am just not sure what the predict.RandomForest function is doing... I confused. I would expect the predictions for these 2 function calls to predict the same: ```{r} diachp.rf <- randomForest(quality~.,data=data,ntree=50, importance=TRUE) ypred_oob <- predict(diachp.rf) dataX <- data %>