类 HashingTF

  • 所有已实现的接口:
    Serializable, org.apache.flink.ml.api.AlgoOperator<HashingTF>, org.apache.flink.ml.api.Stage<HashingTF>, org.apache.flink.ml.api.Transformer<HashingTF>, org.apache.flink.ml.common.param.HasInputCol<HashingTF>, org.apache.flink.ml.common.param.HasNumFeatures<HashingTF>, org.apache.flink.ml.common.param.HasOutputCol<HashingTF>, HashingTFParams<HashingTF>, org.apache.flink.ml.param.WithParams<HashingTF>

    public class HashingTF
    extends Object
    implements org.apache.flink.ml.api.Transformer<HashingTF>, HashingTFParams<HashingTF>
    A Transformer that maps a sequence of terms(strings, numbers, booleans) to a sparse vector with a specified dimension using the hashing trick.

    If multiple features are projected into the same column, the output values are accumulated by default. Users could also enforce all non-zero output values as 1 by setting HashingTFParams.BINARY as true.

    For the hashing trick, see https://en.wikipedia.org/wiki/Feature_hashing for details.

    另请参阅:
    序列化表格
    • 嵌套类概要

      嵌套类 
      修饰符和类型 说明
      static class  HashingTF.HashTFFunction
      The main logic of HashingTF, which converts the input to a sparse vector.
    • 字段概要

      • 从接口继承的字段 org.apache.flink.ml.common.param.HasInputCol

        INPUT_COL
      • 从接口继承的字段 org.apache.flink.ml.common.param.HasNumFeatures

        NUM_FEATURES
      • 从接口继承的字段 org.apache.flink.ml.common.param.HasOutputCol

        OUTPUT_COL
    • 构造器概要

      构造器 
      构造器 说明
      HashingTF()  
    • 构造器详细资料

      • HashingTF

        public HashingTF()
    • 方法详细资料

      • transform

        public org.apache.flink.table.api.Table[] transform​(org.apache.flink.table.api.Table... inputs)
        指定者:
        transform 在接口中 org.apache.flink.ml.api.AlgoOperator<HashingTF>
      • getParamMap

        public Map<org.apache.flink.ml.param.Param<?>,​Object> getParamMap()
        指定者:
        getParamMap 在接口中 org.apache.flink.ml.param.WithParams<HashingTF>