Package org.egothor.methodatlas.eval
Record Class AccuracyEvaluator.Evaluation
java.lang.Object
java.lang.Record
org.egothor.methodatlas.eval.AccuracyEvaluator.Evaluation
- Record Components:
metrics- the computed quality metricspredictionRows- number of rows read from the predictions CSVevaluated- number of methods that were both labelled and predicted and therefore took part in scoringunlabelledPredictions- predicted methods without a usable labelunpredictedLabels- labelled methods whose row carries no AI predictionstaleLabelEntries- 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 Summary
ConstructorsConstructorDescriptionEvaluation(AccuracyMetrics.Result metrics, int predictionRows, int evaluated, int unlabelledPredictions, int unpredictedLabels, int staleLabelEntries) Creates an instance of aEvaluationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theevaluatedrecord component.final inthashCode()Returns a hash code value for this object.metrics()Returns the value of themetricsrecord component.intReturns the value of thepredictionRowsrecord component.intReturns the value of thestaleLabelEntriesrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theunlabelledPredictionsrecord component.intReturns the value of theunpredictedLabelsrecord component.
-
Constructor Details
-
Evaluation
public Evaluation(AccuracyMetrics.Result metrics, int predictionRows, int evaluated, int unlabelledPredictions, int unpredictedLabels, int staleLabelEntries) Creates an instance of aEvaluationrecord class.- Parameters:
metrics- the value for themetricsrecord componentpredictionRows- the value for thepredictionRowsrecord componentevaluated- the value for theevaluatedrecord componentunlabelledPredictions- the value for theunlabelledPredictionsrecord componentunpredictedLabels- the value for theunpredictedLabelsrecord componentstaleLabelEntries- the value for thestaleLabelEntriesrecord 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 '=='. -
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-
predictionRows
public int predictionRows()Returns the value of thepredictionRowsrecord component.- Returns:
- the value of the
predictionRowsrecord component
-
evaluated
public int evaluated()Returns the value of theevaluatedrecord component.- Returns:
- the value of the
evaluatedrecord component
-
unlabelledPredictions
public int unlabelledPredictions()Returns the value of theunlabelledPredictionsrecord component.- Returns:
- the value of the
unlabelledPredictionsrecord component
-
unpredictedLabels
public int unpredictedLabels()Returns the value of theunpredictedLabelsrecord component.- Returns:
- the value of the
unpredictedLabelsrecord component
-
staleLabelEntries
public int staleLabelEntries()Returns the value of thestaleLabelEntriesrecord component.- Returns:
- the value of the
staleLabelEntriesrecord component
-