Package dev.dokimos.server.dto.v1
Record Class AlignmentView
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.AlignmentView
- Record Components:
annotatedItems- the number of run items carrying any human verdict (including UNSURE)evaluators- per-evaluator agreement breakdown, one entry per distinct evaluator name
public record AlignmentView(int annotatedItems, List<AlignmentView.EvaluatorAlignment> evaluators)
extends Record
Per-run, per-evaluator agreement between automated evaluator verdicts and human annotations. For
each evaluator the agreement rate is the fraction of comparable items where the evaluator's
pass/fail matched the human verdict (CORRECT treated as pass, INCORRECT as fail). Items with an
UNSURE verdict or no annotation are excluded from the rate and reported separately.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordAgreement breakdown for a single evaluator across a run's annotated items. -
Constructor Summary
ConstructorsConstructorDescriptionAlignmentView(int annotatedItems, List<AlignmentView.EvaluatorAlignment> evaluators) Creates an instance of aAlignmentViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theannotatedItemsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AlignmentView
Creates an instance of aAlignmentViewrecord class.- Parameters:
annotatedItems- the value for theannotatedItemsrecord componentevaluators- the value for theevaluatorsrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
annotatedItems
public int annotatedItems()Returns the value of theannotatedItemsrecord component.- Returns:
- the value of the
annotatedItemsrecord component
-
evaluators
Returns the value of theevaluatorsrecord component.- Returns:
- the value of the
evaluatorsrecord component
-