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 ef955d5 commit c80c1b0Copy full SHA for c80c1b0
1 file changed
openml/tasks/functions.py
@@ -176,7 +176,11 @@ def _list_tasks(api_call):
176
'status': task_['oml:status']}
177
178
# Other task inputs
179
- for input in task_.get('oml:input', list()):
+ task_inputs = task_.get('oml:input')
180
+ if isinstance(task_inputs, dict):
181
+ task_inputs = [task_inputs]
182
+
183
+ for input in task_inputs:
184
if input['@name'] == 'estimation_procedure':
185
task[input['@name']] = proc_dict[int(input['#text'])]['name']
186
else:
0 commit comments