Package org.tribuo.reproducibility
Record Class ReproUtil.FeatureDiff
java.lang.Object
java.lang.Record
org.tribuo.reproducibility.ReproUtil.FeatureDiff
- Record Components:
originalFeatures
- The unique features from the original model.reproducedFeatures
- The unique features from the reproduced model.
public static record ReproUtil.FeatureDiff(Set<String> originalFeatures, Set<String> reproducedFeatures)
extends Record
Record for any differences between feature sets.
-
Constructor Summary
ConstructorDescriptionFeatureDiff
(Set<String> originalFeatures, Set<String> reproducedFeatures) Creates an instance of aFeatureDiff
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 theoriginalFeatures
record component.Returns the value of thereproducedFeatures
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FeatureDiff
Creates an instance of aFeatureDiff
record class.- Parameters:
originalFeatures
- the value for theoriginalFeatures
record componentreproducedFeatures
- the value for thereproducedFeatures
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)
. -
originalFeatures
Returns the value of theoriginalFeatures
record component.- Returns:
- the value of the
originalFeatures
record component
-
reproducedFeatures
Returns the value of thereproducedFeatures
record component.- Returns:
- the value of the
reproducedFeatures
record component
-