Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AntoineToubhans/8ccfcd1f0aba75b8785d90e97e288713 to your computer and use it in GitHub Desktop.
Save AntoineToubhans/8ccfcd1f0aba75b8785d90e97e288713 to your computer and use it in GitHub Desktop.
import json
def _read_model_evaluation_metrics(rev: str) -> dict:
with dvc.api.open("data/evaluation/metrics.json", rev=rev) as file:
return json.load(file)
MODELS_EVALUATION_METRICS = {
commit.hexsha: _read_model_evaluation_metrics(model_rev=commit.hexsha)
for commit in MODELS_COMMITS
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment