Package org.tribuo.reproducibility
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.
public static record ReproUtil.OutputDiff<T extends Output<T>>(Set<T extends Output<T>> originalOutput, Set<T extends Output<T>> reproducedOutput)
extends Record
Record for any differences between output domains.
-
Constructor Summary
ConstructorDescriptionOutputDiff
(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
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)
. -
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
-