Class Answer.ScoreAnswer
java.lang.Object
com.google.adk.classifiers.Answer.ScoreAnswer
- All Implemented Interfaces:
Answer
- Enclosing interface:
Answer
The answer to a
Question.Score question.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Answer
Answer.BinaryAnswer, Answer.ChoiceAnswer, Answer.RefusalAnswer, Answer.ScoreAnswerModifier and TypeInterfaceDescriptionstatic classThe answer to aQuestion.Binaryquestion.static classThe answer to aQuestion.Choicequestion.static enumThe answer to a question that the provider declined to answer.static classThe answer to aQuestion.Scorequestion. -
Method Summary
Modifier and TypeMethodDescriptionstatic Answer.ScoreAnswer.Builderbuilder()Returns the provider's confidence in the answer, in [0, 1], if it reports one.Returns each rubric level, counting from 0, mapped to its probability, in [0, 1].abstract doublescore()Returns the expected rubric level, weighted byprobabilities().abstract Answer.ScoreAnswer.Builder
-
Method Details
-
score
public abstract double score()Returns the expected rubric level, weighted byprobabilities(). -
probabilities
-
confidence
-
builder
-
toBuilder
-