我正在尝试从 R 中的 OpenML 下载数据集。对于这个带有 ID:41436
的特定数据集,由于以下代码,我收到错误:
devtools::install_github("openml/openml-r")
install.packages(c("farff", "RWeka"))
library("OpenML")
datInfo <- getOMLDataSet(data.id = 41436, verbosity = 0)
targetVariable <- datInfo$target.features
dat <- datInfo$data
Warning message in getOMLDataSetById(data.id = data.id, cache.only = cache.only, :
“Data set is in preparation and will be activated soon.”
Error in names(x) <- value: 'names' attribute [10] must be the same length as the vector [1]
Traceback:
1. getOMLDataSet(data.id = 41436, verbosity = 0)
2. getOMLDataSetById(data.id = data.id, cache.only = cache.only,
. verbosity = verbosity)
3. arff.reader(f$dataset.arff$path)
4. farff::readARFF(file, show.info = FALSE)
5. `colnames<-`(`*tmp*`, value = header$col.names)