Record Class RunComparisonResult

java.lang.Object
java.lang.Record
dev.dokimos.core.comparison.RunComparisonResult

public record RunComparisonResult(double baselinePassRate, double candidatePassRate, double passRateDelta, SignificanceResult passRateSignificance, boolean passRateRegressed, boolean passRateImproved, int improvedCount, int regressedCount, int unchangedCount, int addedCount, int removedCount, int significantImprovedCount, int significantRegressedCount, List<EvaluatorDelta> evaluatorDeltas, List<ItemComparison> items) extends Record
Result of comparing a baseline set of runs against a candidate set. Side pass rates cover each side's full item set; significance is computed on the paired (shared) items. Item-level counts are significance-gated; hasRegressions() is the canonical gate predicate.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RunComparisonResult(double baselinePassRate, double candidatePassRate, double passRateDelta, SignificanceResult passRateSignificance, boolean passRateRegressed, boolean passRateImproved, int improvedCount, int regressedCount, int unchangedCount, int addedCount, int removedCount, int significantImprovedCount, int significantRegressedCount, List<EvaluatorDelta> evaluatorDeltas, List<ItemComparison> items)
    Creates an instance of a RunComparisonResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the addedCount record component.
    double
    Returns the value of the baselinePassRate record component.
    double
    Returns the value of the candidatePassRate record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the evaluatorDeltas record component.
    final int
    Returns a hash code value for this object.
    boolean
    True when the overall pass rate or any evaluator is significantly regressed.
    int
    Returns the value of the improvedCount record component.
    Evaluator deltas flagged as significant improvements.
    Returns the value of the items record component.
    double
    Returns the value of the passRateDelta record component.
    boolean
    Returns the value of the passRateImproved record component.
    boolean
    Returns the value of the passRateRegressed record component.
    Returns the value of the passRateSignificance record component.
    int
    Returns the value of the regressedCount record component.
    Evaluator deltas flagged as significant regressions.
    int
    Returns the value of the removedCount record component.
    int
    Returns the value of the significantImprovedCount record component.
    int
    Returns the value of the significantRegressedCount record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the unchangedCount record component.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RunComparisonResult

      public RunComparisonResult(double baselinePassRate, double candidatePassRate, double passRateDelta, SignificanceResult passRateSignificance, boolean passRateRegressed, boolean passRateImproved, int improvedCount, int regressedCount, int unchangedCount, int addedCount, int removedCount, int significantImprovedCount, int significantRegressedCount, List<EvaluatorDelta> evaluatorDeltas, List<ItemComparison> items)
      Creates an instance of a RunComparisonResult record class.
      Parameters:
      baselinePassRate - the value for the baselinePassRate record component
      candidatePassRate - the value for the candidatePassRate record component
      passRateDelta - the value for the passRateDelta record component
      passRateSignificance - the value for the passRateSignificance record component
      passRateRegressed - the value for the passRateRegressed record component
      passRateImproved - the value for the passRateImproved record component
      improvedCount - the value for the improvedCount record component
      regressedCount - the value for the regressedCount record component
      unchangedCount - the value for the unchangedCount record component
      addedCount - the value for the addedCount record component
      removedCount - the value for the removedCount record component
      significantImprovedCount - the value for the significantImprovedCount record component
      significantRegressedCount - the value for the significantRegressedCount record component
      evaluatorDeltas - the value for the evaluatorDeltas record component
      items - the value for the items record component
  • Method Details

    • regressions

      public List<EvaluatorDelta> regressions()
      Evaluator deltas flagged as significant regressions.
    • improvements

      public List<EvaluatorDelta> improvements()
      Evaluator deltas flagged as significant improvements.
    • hasRegressions

      public boolean hasRegressions()
      True when the overall pass rate or any evaluator is significantly regressed.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • baselinePassRate

      public double baselinePassRate()
      Returns the value of the baselinePassRate record component.
      Returns:
      the value of the baselinePassRate record component
    • candidatePassRate

      public double candidatePassRate()
      Returns the value of the candidatePassRate record component.
      Returns:
      the value of the candidatePassRate record component
    • passRateDelta

      public double passRateDelta()
      Returns the value of the passRateDelta record component.
      Returns:
      the value of the passRateDelta record component
    • passRateSignificance

      public SignificanceResult passRateSignificance()
      Returns the value of the passRateSignificance record component.
      Returns:
      the value of the passRateSignificance record component
    • passRateRegressed

      public boolean passRateRegressed()
      Returns the value of the passRateRegressed record component.
      Returns:
      the value of the passRateRegressed record component
    • passRateImproved

      public boolean passRateImproved()
      Returns the value of the passRateImproved record component.
      Returns:
      the value of the passRateImproved record component
    • improvedCount

      public int improvedCount()
      Returns the value of the improvedCount record component.
      Returns:
      the value of the improvedCount record component
    • regressedCount

      public int regressedCount()
      Returns the value of the regressedCount record component.
      Returns:
      the value of the regressedCount record component
    • unchangedCount

      public int unchangedCount()
      Returns the value of the unchangedCount record component.
      Returns:
      the value of the unchangedCount record component
    • addedCount

      public int addedCount()
      Returns the value of the addedCount record component.
      Returns:
      the value of the addedCount record component
    • removedCount

      public int removedCount()
      Returns the value of the removedCount record component.
      Returns:
      the value of the removedCount record component
    • significantImprovedCount

      public int significantImprovedCount()
      Returns the value of the significantImprovedCount record component.
      Returns:
      the value of the significantImprovedCount record component
    • significantRegressedCount

      public int significantRegressedCount()
      Returns the value of the significantRegressedCount record component.
      Returns:
      the value of the significantRegressedCount record component
    • evaluatorDeltas

      public List<EvaluatorDelta> evaluatorDeltas()
      Returns the value of the evaluatorDeltas record component.
      Returns:
      the value of the evaluatorDeltas record component
    • items

      public List<ItemComparison> items()
      Returns the value of the items record component.
      Returns:
      the value of the items record component