We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7113b4 commit 3632127Copy full SHA for 3632127
1 file changed
openml/tasks/task_functions.py
@@ -173,8 +173,6 @@ def _list_tasks(api_call):
173
value = input.get('#text')
174
task[input['@name']] = value
175
176
- task[input['@name']] = input['#text']
177
-
178
# The number of qualities can range from 0 to infinity
179
for quality in task_.get('oml:quality', list()):
180
quality['#text'] = float(quality['#text'])
@@ -184,7 +182,7 @@ def _list_tasks(api_call):
184
182
except KeyError as e:
185
183
raise KeyError("Invalid xml for task: %s" % e)
186
187
- tasks.append(task)
+ tasks.append(task)
188
tasks.sort(key=lambda t: t['tid'])
189
190
return tasks
0 commit comments