Closed thengl closed 2 years ago
I ran the code above and got the same error (also using 1.10, latest version on CRAN), so this is not fixed yet. I am getting similar errors when trying to query a task:
> t <- getOMLTask(task.id = 359993)
Task '359993' file 'task.xml' found in cache.
Task '359993' file 'datasplits.arff' found in cache.
Data '42734' file 'description.xml' found in cache.
Data '42734' file 'dataset.arff' found in cache.
Error in names(x) <- value :
'names' attribute [20] must be the same length as the vector [1]
In addition: Warning message:
The problem is the farff parser. Changing to the (slower) RWeka reader works fine. Furthermore you can use the mlr3oml package as well.
library(OpenML)
setOMLConfig(arff.reader = "RWeka")
#> OpenML configuration:
#> server : http://www.openml.org/api/v1
#> cachedir : /tmp/RtmpmEaof6/cache
#> verbosity : 1
#> arff.reader : RWeka
#> confirm.upload : TRUE
#> apikey :
task = getOMLTask(359993)
#> Downloading from 'http://www.openml.org/api/v1/task/359993' to '/tmp/RtmpmEaof6/cache/tasks/359993/task.xml'.
#> Downloading from 'https://www.openml.org/api_splits/get/359993/Task_359993_splits.arff' to '/tmp/RtmpmEaof6/cache/tasks/359993/datasplits.arff'
#> Downloading from 'http://www.openml.org/api/v1/data/42734' to '/tmp/RtmpmEaof6/cache/datasets/42734/description.xml'.
#> Downloading from 'https://www.openml.org/data/v1/download/22044770/okcupid-stem.arff' to '/tmp/RtmpmEaof6/cache/datasets/42734/dataset.arff'
Created on 2022-02-23 by the reprex package (v2.0.1)
Have been getting some errors while trying to access and upload some datasets/tasks. Here is a code:
My session info:
Tried also making new tasks using the web-interface also no success.