Hi Everyone,
the config_id is handled inconsistently in the query and get_config method. In the former it is converted into a string and in the latter it is not.
Please compare:
|
def query(self, dataset_name, tag, config_id): |
|
"""Query a run. |
|
|
|
Keyword arguments: |
|
dataset_name -- str, the name of the dataset in the benchmark |
|
tag -- str, the tag you want to query |
|
config_id -- int, an identifier for which run you want to query, if too large will query the last run |
|
""" |
|
config_id = str(config_id) |
versus
|
def get_config(self, dataset_name, config_id): |
|
"""Returns the configuration of a run specified by dataset name and config id""" |
|
if dataset_name not in self.dataset_names: |
|
raise ValueError("Dataset name not found.") |
|
return self.data[dataset_name][config_id]["config"] |
Hi Everyone,
the
config_idis handled inconsistently in thequeryandget_configmethod. In the former it is converted into a string and in the latter it is not.Please compare:
LCBench/api.py
Lines 31 to 39 in 17e6375
versus
LCBench/api.py
Lines 108 to 112 in 17e6375