Record Class AccuracyEvaluator.Evaluation

java.lang.Object
java.lang.Record
org.egothor.methodatlas.eval.AccuracyEvaluator.Evaluation
Record Components:
metrics - the computed quality metrics
predictionRows - number of rows read from the predictions CSV
evaluated - number of methods that were both labelled and predicted and therefore took part in scoring
unlabelledPredictions - predicted methods without a usable label
unpredictedLabels - labelled methods whose row carries no AI prediction
staleLabelEntries - label entries matching no row of the predictions CSV (renamed or deleted methods, or a different scan scope)
Enclosing class:
AccuracyEvaluator

public static record AccuracyEvaluator.Evaluation(AccuracyMetrics.Result metrics, int predictionRows, int evaluated, int unlabelledPredictions, int unpredictedLabels, int staleLabelEntries) extends Record
Metrics together with the coverage bookkeeping of the join.
  • Constructor Details

    • Evaluation

      public Evaluation(AccuracyMetrics.Result metrics, int predictionRows, int evaluated, int unlabelledPredictions, int unpredictedLabels, int staleLabelEntries)
      Creates an instance of a Evaluation record class.
      Parameters:
      metrics - the value for the metrics record component
      predictionRows - the value for the predictionRows record component
      evaluated - the value for the evaluated record component
      unlabelledPredictions - the value for the unlabelledPredictions record component
      unpredictedLabels - the value for the unpredictedLabels record component
      staleLabelEntries - the value for the staleLabelEntries record component
  • Method Details

    • 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.
    • metrics

      public AccuracyMetrics.Result metrics()
      Returns the value of the metrics record component.
      Returns:
      the value of the metrics record component
    • predictionRows

      public int predictionRows()
      Returns the value of the predictionRows record component.
      Returns:
      the value of the predictionRows record component
    • evaluated

      public int evaluated()
      Returns the value of the evaluated record component.
      Returns:
      the value of the evaluated record component
    • unlabelledPredictions

      public int unlabelledPredictions()
      Returns the value of the unlabelledPredictions record component.
      Returns:
      the value of the unlabelledPredictions record component
    • unpredictedLabels

      public int unpredictedLabels()
      Returns the value of the unpredictedLabels record component.
      Returns:
      the value of the unpredictedLabels record component
    • staleLabelEntries

      public int staleLabelEntries()
      Returns the value of the staleLabelEntries record component.
      Returns:
      the value of the staleLabelEntries record component