Record Class ReproUtil.ModelReproduction<T extends Output<T>>
java.lang.Object
java.lang.Record
org.tribuo.reproducibility.ReproUtil.ModelReproduction<T>
- Type Parameters:
T- The output type.- Record Components:
model- The reproduced model.featureDiff- Any differences between the features.outputDiff- Any differences between the output domain.provenanceDiff- The provenance diff.
-
Constructor Summary
ConstructorsConstructorDescriptionModelReproduction(Model<T> model, ReproUtil.FeatureDiff featureDiff, ReproUtil.OutputDiff<T> outputDiff, String provenanceDiff) Creates an instance of aModelReproductionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeatureDiffrecord component.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.Returns the value of theoutputDiffrecord component.Returns the value of theprovenanceDiffrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelReproduction
public ModelReproduction(Model<T> model, ReproUtil.FeatureDiff featureDiff, ReproUtil.OutputDiff<T> outputDiff, String provenanceDiff) Creates an instance of aModelReproductionrecord class.- Parameters:
model- the value for themodelrecord componentfeatureDiff- the value for thefeatureDiffrecord componentoutputDiff- the value for theoutputDiffrecord componentprovenanceDiff- the value for theprovenanceDiffrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
model
-
featureDiff
Returns the value of thefeatureDiffrecord component.- Returns:
- the value of the
featureDiffrecord component
-
outputDiff
Returns the value of theoutputDiffrecord component.- Returns:
- the value of the
outputDiffrecord component
-
provenanceDiff
Returns the value of theprovenanceDiffrecord component.- Returns:
- the value of the
provenanceDiffrecord component
-