library(randomForest)
model.forest<-randomForest(Species~.,data=iris)
pre.forest<-predict(model.forest,iris)
table(pre.forest,iris$Species)

 

library(rpart)
library(randomForest)
model.forest<-randomForest(Kyphosis~.,data=kyphosis)
pre.forest<-predict(model.forest,kyphosis)
table(pre.forest,kyphosis$Kyphosis)

相关文章:

  • 2021-05-18
  • 2022-12-23
  • 2022-02-27
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
猜你喜欢
  • 2021-11-18
  • 2022-12-23
  • 2021-12-04
  • 2021-03-30
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案