Skip to content

Exception with KeyError: 'oml:tag' when fetching benchmarks #641

@bailuding

Description

@bailuding

Description

I followed the instruction on https://docs.openml.org/benchmark/#openml100 to fetch the details of benchmarks. but I encountered KeyError: 'oml:tag' for both open ml 100 and openml-cc18.

I use the latest openml package and Python 3.6

Steps/Code to Reproduce

Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import openml
benchmark_suite = openml.study.get_study('OpenML-CC18','tasks')
Traceback (most recent call last):
File "", line 1, in
File "E:\Python\env\lib\site-packages\openml\study\functions.py", line 33, in get_study
for tag in _multitag_to_list(result_dict, 'oml:tag'):
File "E:\Python\env\lib\site-packages\openml\study\functions.py", line 8, in _multitag_to_list
if isinstance(result_dict[tag], list):
KeyError: 'oml:tag'

Expected Results

No error is thrown.

Actual Results

Traceback (most recent call last):
File "", line 1, in
File "E:\Python\env\lib\site-packages\openml\study\functions.py", line 33, in get_study
for tag in _multitag_to_list(result_dict, 'oml:tag'):
File "E:\Python\env\lib\site-packages\openml\study\functions.py", line 8, in _multitag_to_list
if isinstance(result_dict[tag], list):
KeyError: 'oml:tag'

Versions

Python 3.6.6, openml 0.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions