check.data(x,allowed.types = c(discrete.data.types,Continuous.data.types))中的错误:

时间:2018-07-27 09:01:46

标签: r oversampling

我正在尝试使用“不平衡” R软件包,并且出现了此类错误:

> library(imbalance)
> newSamples <- racog(iris0, numInstances = 40, burnin = 20, lag = 10, classAttr="Class")

有效!

> newSamples <- racog(iris0[,c("SepalLength","Class")], numInstances = 40, burnin = 20, lag = 10, classAttr="Class")
Error in check.data(x, allowed.types = c(discrete.data.types, continuous.data.types)) : 
  the data must be in a data frame.

这是个问题

iris0[,c("SepalLength","Class")]iris0(如果是类型)有什么区别?

0 个答案:

没有答案