CorrectionRound#

class scikitplot.corpus.CorrectionRound(index, query, grade, status, hit_count, seconds, error=None)[source]#

One round: the query run, how it was graded, what came back.

Parameters:
indexint

0-based round number.

querystr

The query this round ran (the original, or a rewrite).

gradeGradeResult

The grade of its hits, against the original query.

statusRetrievalStatus or None

The response’s status; None for a response without one.

hit_countint

Hits the round returned.

secondsfloat

Time the round took (search and grading).

errorErrorRecord or None, default=None

The round’s first error (its search failed, its response was not complete, or its grader failed).

Parameters:
error: ErrorRecord | None = None#
grade: GradeResult[source]#
hit_count: int[source]#
index: int[source]#
query: str[source]#
seconds: float[source]#
status: RetrievalStatus | None[source]#
to_dict()[source]#

Return a JSON-compatible mapping.

Return type:

dict[str, Any]