Skip to content

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