GradeResult#

class scikitplot.corpus.GradeResult(grade, score, reason='', grader=None)[source]#

One grader’s judgement of one round.

Parameters:
gradeEvidenceGrade or str

The judgement.

scorefloat

In [0, 1]; the grader’s measure (coverage, for TermCoverageGrader). Any real number type (numpy.float32 included) is accepted and stored as float.

reasonstr, default=””

Why, in words.

graderstr or None, default=None

The grader’s identity. A grader may set it (a model and its version); when it is None, CorrectiveRetrieval fills in the grader’s name.

Raises:
TypeError, ValueError

If grade is not an EvidenceGrade (or its value) or score is not a finite number in [0, 1].

Parameters:
grade: EvidenceGrade[source]#
grader: str | None = None#
reason: str = ''#
score: float[source]#
to_dict()[source]#

Return a JSON-compatible mapping.

Return type:

dict[str, Any]