Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
函数predict()在r中显示未使用的参数 dctree()函数来自哪里?它返回什么类型的对象?请列出用于运行代码的所有非基本R包。 d <- data.frame(x1 = c(0,1,0,1,1,1,0,0), _R_Predict - Fatal编程技术网

函数predict()在r中显示未使用的参数 dctree()函数来自哪里?它返回什么类型的对象?请列出用于运行代码的所有非基本R包。 d <- data.frame(x1 = c(0,1,0,1,1,1,0,0),

函数predict()在r中显示未使用的参数 dctree()函数来自哪里?它返回什么类型的对象?请列出用于运行代码的所有非基本R包。 d <- data.frame(x1 = c(0,1,0,1,1,1,0,0), ,r,predict,R,Predict,函数predict()在r中显示未使用的参数 dctree()函数来自哪里?它返回什么类型的对象?请列出用于运行代码的所有非基本R包。 d <- data.frame(x1 = c(0,1,0,1,1,1,0,0), x2 = c(2,3,4,5,6,2,2,2), x3 = c(7,4,4,4,42,2,2,2)) d$x1 <- factor(d$x1) d.train <- d[1:5,] d.test &

函数predict()在r中显示未使用的参数
d
ctree()
函数来自哪里?它返回什么类型的对象?请列出用于运行代码的所有非基本R包。
d <- data.frame(x1 = c(0,1,0,1,1,1,0,0), 
                x2 = c(2,3,4,5,6,2,2,2),
                x3 = c(7,4,4,4,42,2,2,2))
d$x1 <- factor(d$x1)
d.train <- d[1:5,]
d.test <- d[6:7,-1]
tree <- ctree(x1 ~ x2 + x3, d.train)

predict(tree, d.test)

> predict(tree, d.test)
Error in predict(tree, d.test) : unused argument (d.test)