Record Class ReproUtil.OutputDiff<T extends Output<T>>
java.lang.Object
java.lang.Record
org.tribuo.reproducibility.ReproUtil.OutputDiff<T>
- Type Parameters:
T
- The type of the output.- Record Components:
originalOutput
- The unique output dimensions from the original model.reproducedOutput
- The unique output dimensions from the reproduced model.
-
Constructor Summary
ConstructorsConstructorDescriptionOutputDiff
(Set<T> originalOutput, Set<T> reproducedOutput) Creates an instance of aOutputDiff
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theoriginalOutput
record component.Returns the value of thereproducedOutput
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OutputDiff
Creates an instance of aOutputDiff
record class.- Parameters:
originalOutput
- the value for theoriginalOutput
record componentreproducedOutput
- the value for thereproducedOutput
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)
. -
originalOutput
Returns the value of theoriginalOutput
record component.- Returns:
- the value of the
originalOutput
record component
-
reproducedOutput
Returns the value of thereproducedOutput
record component.- Returns:
- the value of the
reproducedOutput
record component
-