Record Class IsolationForest.Options
java.lang.Object
java.lang.Record
smile.anomaly.IsolationForest.Options
- Record Components:
ntrees- the number of trees.maxDepth- the maximum depth of the tree.subsample- the sampling rate for training tree.extensionLevel- the extension level.
- Enclosing class:
IsolationForest
public static record IsolationForest.Options(int ntrees, int maxDepth, double subsample, int extensionLevel)
extends Record
Isolation Forest hyperparameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theextensionLevelrecord component.final inthashCode()Returns a hash code value for this object.intmaxDepth()Returns the value of themaxDepthrecord component.intntrees()Returns the value of thentreesrecord component.static IsolationForest.Optionsof(Properties props) Returns the options from properties.doubleReturns the value of thesubsamplerecord component.Returns the persistent set of hyperparameters.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Options
public Options(int ntrees, int maxDepth, double subsample, int extensionLevel) Constructor. -
Options
public Options()Constructor.
-
-
Method Details
-
toProperties
Returns the persistent set of hyperparameters.- Returns:
- the persistent set.
-
of
Returns the options from properties.- 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 with thecomparemethod from their corresponding wrapper classes. -
ntrees
-
maxDepth
-
subsample
-
extensionLevel
public int extensionLevel()Returns the value of theextensionLevelrecord component.- Returns:
- the value of the
extensionLevelrecord component
-