Package org.tribuo.reproducibility
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.
public static record ReproUtil.ModelReproduction<T extends Output<T>>(Model<T extends Output<T>> model, ReproUtil.FeatureDiff featureDiff, ReproUtil.OutputDiff<T extends Output<T>> outputDiff, String provenanceDiff)
extends Record
Record for a model reproduction.
-
Constructor Summary
ConstructorDescriptionModelReproduction
(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
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-
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
-