Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.2
rev: v0.15.6
hooks:
- id: ruff
args: ["--fix"]
Expand Down
4 changes: 3 additions & 1 deletion lambench/metrics/vishelper/metrics_calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ def calculate_generalizability_downstream_score(self) -> tuple[dict, dict]:
) # drop models with missing domain results

# # Now aggregate all domains to get the final generalizability metrics for each model
return domain_results.to_dict(orient="index"), domain_results.mean(axis=1).to_dict()
return domain_results.to_dict(orient="index"), domain_results.mean(
axis=1
).to_dict()

def calculate_stability_results(self) -> dict[str, float]:
"""This calculates the stability score for a given LAM."""
Expand Down
Loading