NoulAnswer class final

Calibrated result for a NoulQuestion.

Inheritance

Constructors

NoulAnswer({required double noul, required double confidence})
Creates a NoulAnswer.
const
NoulAnswer.fromJson(Map<String, dynamic> json)
Creates a NoulAnswer from a JSON map.
factory

Properties

confidence → double
Closed-world confidence score in [0, 1] equal to the calibrated probability of the winning outcome.
final
hashCode → int
The hash code for this object.
no setterinherited
noul → double
Calibrated probability P(true) in [0.01, 0.99].
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
Discriminator identifying the answer kind ('noul', 'choice', or 'score').
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this DecisionAnswer to a JSON map.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited