r - Random forest k fold cross validation error for list class -


i'm trying k-fold cross validation rf:

fit3 <- rfcv(x, y, data=trainset1, controls=cforest_unbiased, cv.fold=10)   testset1 <- as.data.frame(testset1) pred1    <- predict(fit3, testset1, oob=true) cor.test(pred1, testset$swl) 

i encounter error:

error in usemethod("predict") :  no applicable method 'predict' applied object of class "list" 

i'm sure testset1 not list.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -