Package xyz.tcheeric.jev
Record Class Evaluation
java.lang.Object
java.lang.Record
xyz.tcheeric.jev.Evaluation
- Record Components:
model- the versioned model ID that actually answered, as the evaluator reported it. It is kept so a consumer can record which model produced each answer it calibrated on.
The answers to one fan-out of questions, keyed by the names the caller gave them, together
with what the evaluation cost.
The typed accessors exist so a caller who asked a score question gets a score answer without casting. They retrieve; they do not judge. There is deliberately no method here that counts answers, compares them, or turns one into a decision (ADR 0002): four consumers are ranked for this library and each owns its own thresholds.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswers()Returns the value of theanswersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.usage()Returns the value of theusagerecord component.
-
Constructor Details
-
Evaluation
Creates an instance of aEvaluationrecord class.- Parameters:
model- the value for themodelrecord componentanswers- the value for theanswersrecord componentusage- the value for theusagerecord component
-
-
Method Details
-
noul
-
choice
-
score
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
answers
Returns the value of theanswersrecord component.- Returns:
- the value of the
answersrecord component
-
usage
Returns the value of theusagerecord component.- Returns:
- the value of the
usagerecord component
-