{"action":"created","issue":{"url":"https://api.github.com/repos/openml/python/issues/19","labels_url":"https://api.github.com/repos/openml/python/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/openml/python/issues/19/comments","events_url":"https://api.github.com/repos/openml/python/issues/19/events","html_url":"https://github.com/openml/python/issues/19","id":121589321,"number":19,"title":"Decoding Issue","user":{"login":"PG-TUe","id":15890747,"avatar_url":"https://avatars.githubusercontent.com/u/15890747?v=3","gravatar_id":"","url":"https://api.github.com/users/PG-TUe","html_url":"https://github.com/PG-TUe","followers_url":"https://api.github.com/users/PG-TUe/followers","following_url":"https://api.github.com/users/PG-TUe/following{/other_user}","gists_url":"https://api.github.com/users/PG-TUe/gists{/gist_id}","starred_url":"https://api.github.com/users/PG-TUe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PG-TUe/subscriptions","organizations_url":"https://api.github.com/users/PG-TUe/orgs","repos_url":"https://api.github.com/users/PG-TUe/repos","events_url":"https://api.github.com/users/PG-TUe/events{/privacy}","received_events_url":"https://api.github.com/users/PG-TUe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-10T22:15:14Z","updated_at":"2015-12-14T13:18:54Z","closed_at":null,"body":"I run into a decoding issue when trying to retrieve information about the dataset, when running the code\r\n````\r\nfrom openml.apiconnector import APIConnector\r\nconnector = APIConnector(apikey = 'key')\r\ntask = connector.download_task(59)\r\ndataset = task.get_dataset()\r\nX, y, categorical = dataset.get_dataset(target=dataset.default_target_attribute)\r\n````\r\nI get \r\n````\r\nTraceback (most recent call last):\r\n  File \"...\\OpenML\\TaskScript.py\", line 15, in <module>\r\n    X, y, categorical = dataset.get_dataset(target=dataset.default_target_attribute)\r\n  File \"...\\OpenML\\openml\\entities\\dataset.py\", line 138, in get_dataset\r\n    data, categorical, attribute_names = pickle.load(fh)\r\n  File \"...\\python-3.4.3.amd64\\lib\\encodings\\cp1252.py\", line 23, in decode\r\n    return codecs.charmap_decode(input,self.errors,decoding_table)[0]\r\nUnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 977: character maps to <undefined>\r\n````\r\nIf it helps, I'm using Python3.4.3 and my default encoding is utf-8 (sys.getdefaultencoding()), though the traceback suggests cp1252 was used."},"comment":{"url":"https://api.github.com/repos/openml/python/issues/comments/164434034","html_url":"https://github.com/openml/python/issues/19#issuecomment-164434034","issue_url":"https://api.github.com/repos/openml/python/issues/19","id":164434034,"user":{"login":"zardaloop","id":3836215,"avatar_url":"https://avatars.githubusercontent.com/u/3836215?v=3","gravatar_id":"","url":"https://api.github.com/users/zardaloop","html_url":"https://github.com/zardaloop","followers_url":"https://api.github.com/users/zardaloop/followers","following_url":"https://api.github.com/users/zardaloop/following{/other_user}","gists_url":"https://api.github.com/users/zardaloop/gists{/gist_id}","starred_url":"https://api.github.com/users/zardaloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zardaloop/subscriptions","organizations_url":"https://api.github.com/users/zardaloop/orgs","repos_url":"https://api.github.com/users/zardaloop/repos","events_url":"https://api.github.com/users/zardaloop/events{/privacy}","received_events_url":"https://api.github.com/users/zardaloop/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T13:18:54Z","updated_at":"2015-12-14T13:18:54Z","body":"I can't test it just now because I don't have my laptop with me, but I guess what you need is  get_X_and_Y().\r\n\r\nHave a look at here(https://github.com/openml/python/blob/master/openml/entities/task.py)  from line 44 to 48. @mfeurer  should know more about. \r\n\r\nI hope that helps. :)\r\n\r\nCheers\r\n"}}