Class

ksb.csle.component.operator.analysis

RandomForestClassifierTrainOperator

Related Doc: package analysis

Permalink

class RandomForestClassifierTrainOperator extends BaseDataOperator[StreamOperatorInfo, DataFrame]

:: ApplicationDeveloperApi ::

Operator that trains RandomForest classification model in the given attributes.

Linear Supertypes
BaseDataOperator[StreamOperatorInfo, DataFrame], BaseGenericOperator[StreamOperatorInfo, DataFrame], BaseGenericMutantOperator[StreamOperatorInfo, DataFrame, DataFrame], BaseDoer, Logging, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RandomForestClassifierTrainOperator
  2. BaseDataOperator
  3. BaseGenericOperator
  4. BaseGenericMutantOperator
  5. BaseDoer
  6. Logging
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RandomForestClassifierTrainOperator(o: StreamOperatorInfo)

    Permalink

    o

    Object that contains message ksb.csle.common.proto.StreamOperatorProto.RandomForestClassifierTrainInfo RandomForestClassifierTrainInfo contains attributes as follows:

    • labelColumnName: label column name (required)
    • featureColumnNames: feature column names (required)
    • modelBasePath: model base path to save (required)
    • numFolds: number of folds for cross validation, default is 3 (optional)
    • numTrees: number of trees to train (>= 1), default is 20 (repeated)
    • maxDepth: maximum depth of the tree (>= 0), default is 5 (repeated)
    • maxBins: maximum number of bins used for discretizing continuous features, default is 32 (repeated)
    • featureSubsetStrategy: number of features to consider for splits at each tree node, default is 'auto' (repeated)
    • impurity: criterion used for information gain calculation, default is 'gini' (repeated)

    RandomForestClassifierTrainInfo

    message RandomForestClassifierTrainInfo {
      enum FeatureSubsetStrategy {
        auto = 1;
        all = 2;
        onethird = 3;
        sqrt = 4;
        log2 = 5;
      }
      enum Impurity {
        gini = 1;
        entropy = 2;
      }
      required string labelColumnName = 1;
      required string featureColumnNames = 2 [default = "*"];
      required string modelBasePath = 3;
      optional int32 numFolds = 4 [default = 3];
      repeated int32 numTrees = 5; // [default = 20];
      repeated int32 maxDepth = 6; // [default = 5];
      repeated int32 maxBins = 7; // [default = 32];
      repeated FeatureSubsetStrategy featureSubsetStrategy = 8; // [default = auto];
      repeated Impurity impurity = 9; // [default = gini];
    }

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def operate(inputs: DataFrame): DataFrame

    Permalink

    Operate training the RandomForest classification model.

    Operate training the RandomForest classification model.

    inputs

    Input dataframe

    returns

    DataFrame Output dataframe has test results.

    Definition Classes
    RandomForestClassifierTrainOperator → BaseGenericOperator → BaseGenericMutantOperator
  17. def stop: Unit

    Permalink
    Definition Classes
    BaseGenericOperator → BaseGenericMutantOperator
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BaseDataOperator[StreamOperatorInfo, DataFrame]

Inherited from BaseGenericOperator[StreamOperatorInfo, DataFrame]

Inherited from BaseGenericMutantOperator[StreamOperatorInfo, DataFrame, DataFrame]

Inherited from BaseDoer

Inherited from Logging

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped