Package elki.outlier.density
Class IsolationForest.Par
- java.lang.Object
-
- elki.outlier.density.IsolationForest.Par
-
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- IsolationForest
public static class IsolationForest.Par extends java.lang.Object implements Parameterizer
Parameterization class- Author:
- Braulio V.S. Vinces
-
-
Field Summary
Fields Modifier and Type Field Description static OptionIDNUM_TREES_IDParameter for the number of treesprotected intnumTreesNumber of treesprotected RandomFactoryrndRandom generatorstatic OptionIDSEED_IDParameter to specify the seed to initialize Random.static OptionIDSUBSAMPLE_SIZE_IDParameter for the sub sample sizeprotected intsubsampleSizeSize of the sample set
-
Constructor Summary
Constructors Constructor Description Par()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Parameterization config)Configure the class.IsolationForestmake()Make an instance after successful configuration.
-
-
-
Field Detail
-
NUM_TREES_ID
public static final OptionID NUM_TREES_ID
Parameter for the number of trees
-
SUBSAMPLE_SIZE_ID
public static final OptionID SUBSAMPLE_SIZE_ID
Parameter for the sub sample size
-
SEED_ID
public static final OptionID SEED_ID
Parameter to specify the seed to initialize Random.
-
numTrees
protected int numTrees
Number of trees
-
subsampleSize
protected int subsampleSize
Size of the sample set
-
rnd
protected RandomFactory rnd
Random generator
-
-
Method Detail
-
configure
public void configure(Parameterization config)
Description copied from interface:ParameterizerConfigure the class.Note: the status is collected by the parameterization object, so that multiple errors may arise and be reported in one run.
- Specified by:
configurein interfaceParameterizer- Parameters:
config- Parameterization
-
make
public IsolationForest make()
Description copied from interface:ParameterizerMake an instance after successful configuration.Note: your class should return the exact type, only this very broad interface should use
Objectas return type.- Specified by:
makein interfaceParameterizer- Returns:
- a new instance
-
-