Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment plotting improvements #330

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
17 changes: 14 additions & 3 deletions causaltune/score/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ def supported_metrics(problem: str, multivalue: bool, scores_only: bool) -> List
else:
metrics = [
"erupt",
"norm_erupt",
"greedy_erupt", # regular erupt was made probabilistic, no need for a separate one
# "norm_erupt",
# "greedy_erupt", # regular erupt was made probabilistic, no need for a separate one
"policy_risk", # NEW
"qini",
"auc",
# "r_scorer",
"energy_distance", # is broken without propensity weighting
# "energy_distance", # is broken without propensity weighting
"psw_energy_distance",
"frobenius_norm", # NEW
"codec", # NEW
Expand All @@ -68,6 +68,17 @@ def supported_metrics(problem: str, multivalue: bool, scores_only: bool) -> List
return metrics


def metrics_to_minimize():
return [
"energy_distance",
"psw_energy_distance",
"codec",
"frobenius_norm",
"psw_frobenius_norm",
"policy_risk",
]


class Scorer:
def __init__(
self,
Expand Down
Loading
Loading