Class 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 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
    • Constructor Detail

      • Par

        public Par()
    • Method Detail

      • configure

        public void configure​(Parameterization config)
        Description copied from interface: Parameterizer
        Configure 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:
        configure in interface Parameterizer
        Parameters:
        config - Parameterization
      • make

        public IsolationForest make()
        Description copied from interface: Parameterizer
        Make an instance after successful configuration.

        Note: your class should return the exact type, only this very broad interface should use Object as return type.

        Specified by:
        make in interface Parameterizer
        Returns:
        a new instance