openml / openml-r

R package to interface with OpenML
http://openml.github.io/openml-r/
Other
95 stars 37 forks source link

target.features missing in dataset 40992 #412

Closed bommert closed 5 years ago

bommert commented 6 years ago

There is a problem with the new version of dataset 40992:

d = getOMLDataSet(40992)
convertOMLDataSetToMlr(d)

gives

Error in convertOMLDataSetToMlr(d) : 
  Assertion on 'target' failed: Must have length >= 2, but has length 0.

The target exists but is not noted in target.features.

> d$target.features
character(0)

> colnames(d$data)[217]
"label"
giuseppec commented 6 years ago

Thanks! I opened an issue in the server issue tracker. I will keep this open here until my question here https://github.com/openml/OpenML/issues/669#issuecomment-374155928 has been answered.

giuseppec commented 5 years ago

You could do convertOMLDataSetToMlr(d, target = "label") to define the target yourself as this is not stored in the uploaded data.