Answer

sealed interface Answer

What a DecisionModel answered to one Question.

Inheritors

Types

Link copied to clipboard
data class Choice(val option: String, val probabilities: Map<String, Double> = mapOf(option to 1.0), val confidence: Double = 1.0) : Answer

The model picked option.

Link copied to clipboard
data class Score(val score: Double, val probabilities: List<Double> = emptyList(), val confidence: Double = 1.0) : Answer

The rating of the state. Levels are counted from 0, the lowest.

Link copied to clipboard
data class YesNo(val probability: Double) : Answer

How likely the answer is yes: probability is 0 for a certain no and 1 for a certain yes.