CorrectionResult#
- class scikitplot.corpus.CorrectionResult(query, verdict, rounds, hits, stop_reason, errors=())[source]#
The returned hits, the verdict, and every round.
Iterating it yields the hits, so it is read like a search response.
- Parameters:
- querystr
The query as given.
- verdictCorrectionVerdict
What the retrieval came to.
- roundstuple of CorrectionRound
Every round run, in order.
- hitstuple
The accepted round’s hits; the fused ambiguous rounds’ hits for
partial; none forabstained.- stop_reasonstr
"accepted","max_rounds","no_rewrite"(the rewrite proposed no new query),"deadline"or"rewrite_failed".- errorstuple of ErrorRecord, default=()
Every error: a round whose search failed or whose response was not complete, a grader or rewrite that failed, a fusion that could not run, the deadline.
- Parameters:
query (str)
verdict (CorrectionVerdict)
rounds (tuple[CorrectionRound, ...])
stop_reason (str)
errors (tuple[ErrorRecord, ...])
- errors: tuple[ErrorRecord, ...] = ()#
- rounds: tuple[CorrectionRound, ...][source]#
- property status: RetrievalStatus#
Return the status a search response would have.
- Returns:
- RetrievalStatus
cancelledwhen every round was cancelled (no hit is then returned: a cancelled round is not graded);degradedwhen any error was recorded (every incomplete round response records one); otherwisesuccesswith hits andemptywithout.
- verdict: CorrectionVerdict[source]#