Record Class SMOTETomek.Options
java.lang.Object
java.lang.Record
smile.classification.resampling.SMOTETomek.Options
- Record Components:
smoteOptions- theSMOTEover-sampling options.tomekOptions- theTomekLinkscleaning options.
- Enclosing class:
SMOTETomek
public static record SMOTETomek.Options(SMOTE.Options smoteOptions, TomekLinks.Options tomekOptions)
extends Record
SMOTETomek hyperparameters.
-
Constructor Summary
ConstructorsConstructorDescriptionOptions()Default constructor: defaultSMOTE.OptionsandTomekLinks.Options.Options(SMOTE.Options smoteOptions, TomekLinks.Options tomekOptions) Compact constructor with null-checks. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static SMOTETomek.Optionsof(Properties props) Returns the options from a merged properties set.Returns the value of thesmoteOptionsrecord component.Returns the value of thetomekOptionsrecord component.Returns the persistent set of hyperparameters by merging the property sets of bothSMOTE.OptionsandTomekLinks.Options.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Options
public Options()Default constructor: defaultSMOTE.OptionsandTomekLinks.Options. -
Options
Compact constructor with null-checks.
-
-
Method Details
-
toProperties
Returns the persistent set of hyperparameters by merging the property sets of bothSMOTE.OptionsandTomekLinks.Options.- Returns:
- the merged persistent set.
-
of
Returns the options from a merged properties set.- Parameters:
props- the hyperparameters.- Returns:
- the options.
-
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). -
smoteOptions
Returns the value of thesmoteOptionsrecord component.- Returns:
- the value of the
smoteOptionsrecord component
-
tomekOptions
Returns the value of thetomekOptionsrecord component.- Returns:
- the value of the
tomekOptionsrecord component
-