Class FeatureBagging.Par

  • All Implemented Interfaces:
    Parameterizer
    Enclosing class:
    FeatureBagging

    public static class FeatureBagging.Par
    extends java.lang.Object
    implements Parameterizer
    Parameterization class.
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean breadth
      Cumulative sum or breadth first combinations.
      static OptionID BREADTH_ID
      The flag for using the breadth first approach.
      protected int k
      The neighborhood size to use.
      protected int num
      Number of instances to use.
      static OptionID NUM_ID
      Parameter to specify the number of instances to use in the ensemble.
      protected RandomFactory rnd
      Random generator.
      static OptionID SEED_ID
      The parameter to specify the random seed.
    • Constructor Summary

      Constructors 
      Constructor Description
      Par()  
    • Field Detail

      • NUM_ID

        public static final OptionID NUM_ID
        Parameter to specify the number of instances to use in the ensemble.
      • BREADTH_ID

        public static final OptionID BREADTH_ID
        The flag for using the breadth first approach.
      • SEED_ID

        public static final OptionID SEED_ID
        The parameter to specify the random seed.
      • k

        protected int k
        The neighborhood size to use.
      • num

        protected int num
        Number of instances to use.
      • breadth

        protected boolean breadth
        Cumulative sum or breadth first combinations.
    • 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 FeatureBagging 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