oc_chat
Loading...
Searching...
No Matches
score.py File Reference

Go to the source code of this file.

Classes

class  score.Score

Namespaces

namespace  score

Functions

float score.brier_row (dict[str, float] probs, str truth)
str score.error_direction (str truth, str prediction)
float|None score._top_probability (dict[str, object] row)
Score score.score_payload (dict[str, object] payload, str name, float threshold)
Score score.score_file (Path path, float threshold)
str score._cell (float|None value, int digits=0)
str score._latency_cell (float|None value)
str score.render_table (list[Score] scores)
str score.render_markdown (list[Score] scores)
str score.render_markdown_slices (list[Score] scores)
str score.render_bands (list[Score] scores)
str score.render_misses (list[Score] scores)
dict[str, object] score._as_dict (Score score)
argparse.ArgumentParser score._build_parser ()
int score.main (list[str]|None argv=None)

Variables

tuple score.LABELS = ("allow", "confirm", "deny")
dict score.PERMISSIVENESS = {"deny": 0, "confirm": 1, "allow": 2}
str score.GRANTED_MORE = "more"
str score.GRANTED_LESS = "less"
tuple score.BANDS = ((0.0, 0.5), (0.5, 0.7), (0.7, 0.9), (0.9, 1.01))
float score.DEFAULT_THRESHOLD = 0.9