AnswerItem#
- class scikitplot.corpus.AnswerItem(item_id, question, answer, scores, n_contexts=None, latency_s=0.0, error=None, judgments=<factory>)[source]#
One item of an
AnswerEvaluation.- Parameters:
- item_idstr or int
Item identifier.
- questionstr
The question.
- answerstr or None
The evaluated answer;
Nonewhen the system failed.- scoresmapping
Metric name to score (
NaNwhen undefined or failed).- n_contextsint or None, default=None
Contexts the judges saw (
None: no contexts).- latency_sfloat, default=0.0
Seconds the system took (
0.0for stored answers).- errorstr or None, default=None
Why the system produced no answer.
- judgmentsmapping, default={}
{metric: {judge: JudgeResult}}, when verdicts are kept.
- Parameters: