0

Output predictions of Random Forest in R

Hi all, How do I output (e.g. write as csv) the predictions using the predict function in R? Something like: predict(model, input, type = "response"). At the moment it just pastes the outputs in the Console. Thanks!

24th Jan 2020, 3:10 AM
Jin
Jin - avatar
1 Respuesta
+ 1
What type is the return value of the prediction? If it is a matrix or a data frame, write.table() or write.csv() should work
25th Jan 2020, 12:27 PM
Lisa
Lisa - avatar