ntqr.labels

@author: Andrés Corrada-Emmanuel.

Classes

Label

Label object to guarantee a label is stringifiable.

Labels

Labels used in test question responses. The NTQR package assumes that

Module Contents

class ntqr.labels.Label(label)

Bases: str

Label object to guarantee a label is stringifiable.

_label
__str__()

Return str(self).

class ntqr.labels.Labels(labels: Iterable[str])

Bases: tuple

Labels used in test question responses. The NTQR package assumes that all test questions have the same, fixed, label set. These are a tuple-like object so the user can specify the canonical order of the labels.

The number of labels defines the integer R in the acronym NTQR. Binary classification: R=2 Three label classification: R=3, etc.

_labels