ntqr.plots¶
Module for convenience plotting functions related to NTQR algorithms.
Functions¶
|
Plot pair possible evaluations given qs and responses. |
|
|
|
Module Contents¶
- ntqr.plots.plot_pair_logical_alarm_at_qs(labels: collections.abc.Sequence[str], classifiers: collections.abc.Sequence[int | str], qs: collections.abc.Sequence[int], responses: collections.abc.Sequence[collections.abc.Sequence[int]], plt: types.ModuleType = plt)¶
Plot pair possible evaluations given qs and responses.
- Parameters:
labels (Sequence[str]) – The labels to be used.
classifiers (Sequence[str | int]) – Classifier identifiers, could be integers or strings: 1 or ‘i’, eg.
qs (Sequence[int]) – Number of label questions
responses (Sequence[Sequence[int]]) – Number of label responses by each classifier.
plt (Handle into the pyplot module.)
- Returns:
Plots a square of possible evaluations and safety specification satisfying evaluations for each of the labels.
- Return type:
None
- ntqr.plots.plot_pair_label_evals(ql, pair_label_evals, safety_evals, vars, plt=plt)¶
- ntqr.plots._plot_pair_label_evals(ax, ql, pair_label_evals, safety_evals, vars, plt=plt)¶