【发布时间】:2016-06-14 13:06:17
【问题描述】:
dane <- read.table(file = "http://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer-wisconsin/wpbc.data",sep=",", dec = ".")
library(randomForest)
library(cvTools)
cv <- cvFit(randomForest, x=dane[,-2], y=dane[,2], R=10, k=100, args=list(ntree=500),foldType = "random",cost = rmspe)
【问题讨论】:
-
以文字而非图片的形式发布警告。
-
欢迎来到 Stack Overflow!请阅读有关how to ask a good question的信息
-
看这个例子,也许先将因子转换为数字:
x <- factor(1:3); x - 1
标签: r