ntqr.r3.evaluations
===================

.. py:module:: ntqr.r3.evaluations

.. autoapi-nested-parse::

   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
-------

.. autoapisummary::

   ntqr.r3.evaluations.SingleClassifierEvaluations


Module Contents
---------------

.. py:class:: SingleClassifierEvaluations(Q, single_axioms)

   Bases: :py:obj:`ntqr.evaluations.SingleClassifierEvaluations`


   Single classifier evaluations in (Q_a, Q_b, R_{b_i, a}, R_{a_i,b})
   space.


   .. py:method:: number_aprior_evaluations()

      Calculates all the possible evaluations for a binary response test
      with Q questions.

      :rtype: int



   .. py:method:: 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.



   .. py:method:: max_correct_at_qs(qs, responses)

      Gives highest performing correct for each label.

      Meant to save memory for alarm applications.



   .. py:method:: all_qs()

      Returns all possible question numbers.



   .. py:method:: _label_wrongs_(q)


