Record Class SimulationStudy.AlgorithmSummary
java.lang.Object
java.lang.Record
edu.cmu.tetrad.search.harness.tsc.SimulationStudy.AlgorithmSummary
- Record Components:
label- algorithm label, e.g."TSC".meanPrecision- mean best-Jaccard precision (non-empty reps only).meanRecall- mean best-Jaccard recall (all reps).meanF1- F1 derived from meanPrecision and meanRecall.emptyCount- replications returning no clusters.totalReps- total replications for this condition.
- Enclosing class:
SimulationStudy
public static record SimulationStudy.AlgorithmSummary(String label, double meanPrecision, double meanRecall, double meanF1, int emptyCount, int totalReps)
extends Record
Mean metrics for one algorithm at one sample-size level.
Averaging conventions:
meanPrecision— averaged over non-empty replications only.meanRecall— averaged over all replications (empty = 0).meanF1— derived as2*P*R/(P+R)from the two means above, so it correctly penalises high empty-count algorithms.
- Author:
- josephramsey
-
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmSummary(String label, double meanPrecision, double meanRecall, double meanF1, int emptyCount, int totalReps) Creates an instance of aAlgorithmSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theemptyCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.doublemeanF1()Returns the value of themeanF1record component.doubleReturns the value of themeanPrecisionrecord component.doubleReturns the value of themeanRecallrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalRepsrecord component.
-
Constructor Details
-
AlgorithmSummary
public AlgorithmSummary(String label, double meanPrecision, double meanRecall, double meanF1, int emptyCount, int totalReps) Creates an instance of aAlgorithmSummaryrecord class.- Parameters:
label- the value for thelabelrecord componentmeanPrecision- the value for themeanPrecisionrecord componentmeanRecall- the value for themeanRecallrecord componentmeanF1- the value for themeanF1record componentemptyCount- the value for theemptyCountrecord componenttotalReps- the value for thetotalRepsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
label
-
meanPrecision
public double meanPrecision()Returns the value of themeanPrecisionrecord component.- Returns:
- the value of the
meanPrecisionrecord component
-
meanRecall
public double meanRecall()Returns the value of themeanRecallrecord component.- Returns:
- the value of the
meanRecallrecord component
-
meanF1
-
emptyCount
public int emptyCount()Returns the value of theemptyCountrecord component.- Returns:
- the value of the
emptyCountrecord component
-
totalReps
-