{"action":"opened","issue":{"url":"https://api.github.com/repos/openml/openml-r/issues/225","repository_url":"https://api.github.com/repos/openml/openml-r","labels_url":"https://api.github.com/repos/openml/openml-r/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/openml/openml-r/issues/225/comments","events_url":"https://api.github.com/repos/openml/openml-r/issues/225/events","html_url":"https://github.com/openml/openml-r/issues/225","id":162757329,"number":225,"title":"Set target manually in convertOMLDataSetToMlr()","user":{"login":"MariaErdmann","id":18098454,"avatar_url":"https://avatars.githubusercontent.com/u/18098454?v=3","gravatar_id":"","url":"https://api.github.com/users/MariaErdmann","html_url":"https://github.com/MariaErdmann","followers_url":"https://api.github.com/users/MariaErdmann/followers","following_url":"https://api.github.com/users/MariaErdmann/following{/other_user}","gists_url":"https://api.github.com/users/MariaErdmann/gists{/gist_id}","starred_url":"https://api.github.com/users/MariaErdmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MariaErdmann/subscriptions","organizations_url":"https://api.github.com/users/MariaErdmann/orgs","repos_url":"https://api.github.com/users/MariaErdmann/repos","events_url":"https://api.github.com/users/MariaErdmann/events{/privacy}","received_events_url":"https://api.github.com/users/MariaErdmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-28T18:43:44Z","updated_at":"2016-06-28T18:43:44Z","closed_at":null,"body":"Hi,\r\nworking on my bachelor thesis I recognized that there are some OpenML datasets that do not have a default.target.attribute in their description. Therefore, convertOMLDDataSetToMlr() won't create a task.\r\nIt would be great if the target could be set manually in convertOMLDataSetToMlr() such that all OpenML datasets could be converted to mlr. And @berndbischl asked me to create this issue.\r\n\r\nBelow a mini example:\r\n\r\n````\r\nlibrary(OpenML)\r\nlibrary(mlr)\r\n\r\ndset = getOMLDataSet(1459)\r\ndset$desc$default.target.attribute\r\n# character(0)\r\ntask = convertOMLDataSetToMlr(dset)\r\n#Error in convertOMLDataSetToMlr(dset) : \r\n# Assertion on 'target' failed: Must be element of set {'V1','V2','V3','V4','V5','V6','V7','Class'}.\r\n````"}}
{"actor":{"display_login":"MariaErdmann"}}