ntqr.r3.evaluations¶
Evaluations for binary tests (R=3).
For any finite test there is a finite set of evaluations possible. The classes in this module compute them for the case of 3 classes or test responses.
- Classes:
SingleClassifierEvaluations: Class related to the evaluations for a single classifier consistent with its observed test responses.
Functions:
Misc variables:
Classes¶
Single classifier evaluations in (Q_a, Q_b, R_{b_i, a}, R_{a_i,b}) |
Module Contents¶
- class ntqr.r3.evaluations.SingleClassifierEvaluations(Q, single_axioms)¶
Bases:
ntqr.evaluations.SingleClassifierEvaluationsSingle classifier evaluations in (Q_a, Q_b, R_{b_i, a}, R_{a_i,b}) space.
- number_aprior_evaluations()¶
Calculates all the possible evaluations for a binary response test with Q questions.
- Return type:
int
- errors_at_qs(qs, responses)¶
Returns all evaluations logically consistent with the single classifier axiom given the correct number of each label and a classifier’s responses.
- max_correct_at_qs(qs, responses)¶
Gives highest performing correct for each label.
Meant to save memory for alarm applications.
- all_qs()¶
Returns all possible question numbers.
- _label_wrongs_(q)¶