Created
December 20, 2022 17:53
-
-
Save piercelamb/45b308c2796c58ef74727a96b9f9497e to your computer and use it in GitHub Desktop.
model_containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model_containers = {} | |
for model_name in config.model_names: | |
loaded_model = get_loaded_model(config, model_name) | |
init_stats = init_model_stats(id2label) | |
f1_metric, acc_metric = init_metrics() | |
model_containers[model_name] = { | |
'loaded_model': loaded_model, | |
'stats': init_stats, | |
'metrics':{ | |
'f1': f1_metric, | |
'acc': acc_metric | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment