Merge pull request #245 from tosemml/patch-1

Refactoring
This commit is contained in:
Gustavo de Rosa 2023-09-15 10:59:42 -07:00 коммит произвёл GitHub
Родитель 35038708e4 acf7a846b5
Коммит 0f55ccb4df
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -51,11 +51,11 @@ def main():
sys.exit(1)
store = configure_store(aml_config)
fully_trained = []
for e in store.get_all_status_entities(status='complete'):
if metric_key in e:
fully_trained += [e]
fully_trained = [
e for e in store.get_all_status_entities(status='complete')
if metric_key in e
]
if len(fully_trained) == 0:
print(f"No 'complete' models found with required metric '{metric_key}'")
sys.exit(1)