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 aModelReproduction
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefeatureDiff
record component.final int
hashCode()
Returns a hash code value for this object.model()
Returns the value of themodel
record component.Returns the value of theoutputDiff
record component.Returns the value of theprovenanceDiff
record component.final String
toString()
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 aModelReproduction
record class.- Parameters:
model
- the value for themodel
record componentfeatureDiff
- the value for thefeatureDiff
record componentoutputDiff
- the value for theoutputDiff
record componentprovenanceDiff
- the value for theprovenanceDiff
record 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 thefeatureDiff
record component.- Returns:
- the value of the
featureDiff
record component
-
outputDiff
Returns the value of theoutputDiff
record component.- Returns:
- the value of the
outputDiff
record component
-
provenanceDiff
Returns the value of theprovenanceDiff
record component.- Returns:
- the value of the
provenanceDiff
record component
-