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

Enh/compute score uncertainty #145

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

m-maggi
Copy link
Contributor

@m-maggi m-maggi commented Mar 5, 2024

@lorentzenchr it's just a draft PR to receive some feedback on what I did and discuss how to go forward.

>>> from model_diagnostics.scoring import compute_score, SquaredError
>>> 
>>> y_obs = [0, 0, 1, 1]
>>> y_pred = [-1, 1, 1, 2]
>>> 
>>> print(
...     compute_score(
...         y_obs=y_obs,
...         y_pred=y_pred,
...         scoring_function=SquaredError(),
...         confidence_level=0.5,
...     )
... )
shape: (1, 5)
┌────────────────┬────────────────┬─────────────┬───────┬───────────────────────────┐
│ miscalibrationdiscriminationuncertaintyscorescore_interval            │
│ ---------------                       │
│ f64f64f64f64list[extension]           │
╞════════════════╪════════════════╪═════════════╪═══════╪═══════════════════════════╡
│ 0.6250.1250.250.75  ┆ [[0.55877692 0.94122308]] │
└────────────────┴────────────────┴─────────────┴───────┴───────────────────────────┘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant