org.apache.spark.ml.feature

HashingTF

class HashingTF extends UnaryTransformer[Iterable[_], Vector, HashingTF]

:: AlphaComponent :: Maps a sequence of terms to their term frequencies using the hashing trick.

Annotations
@AlphaComponent()
Linear Supertypes
UnaryTransformer[Iterable[_], Vector, HashingTF], HasOutputCol, HasInputCol, Transformer, Params, Identifiable, PipelineStage, Logging, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HashingTF
  2. UnaryTransformer
  3. HasOutputCol
  4. HasInputCol
  5. Transformer
  6. Params
  7. Identifiable
  8. PipelineStage
  9. Logging
  10. Serializable
  11. Serializable
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HashingTF()

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def createTransformFunc(paramMap: ParamMap): (Iterable[_]) ⇒ Vector

    Creates the transform function using the given param map.

    Creates the transform function using the given param map. The input param map already takes account of the embedded param map. So the param values should be determined solely by the input param map.

    Attributes
    protected
    Definition Classes
    HashingTF → UnaryTransformer
  9. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  11. def explainParams(): String

    Returns the documentation of all params.

    Returns the documentation of all params.

    Definition Classes
    Params
  12. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  14. def getInputCol: String

    Definition Classes
    HasInputCol
  15. def getNumFeatures: Int

  16. def getOutputCol: String

    Definition Classes
    HasOutputCol
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. val inputCol: Param[String]

    param for input column name

    param for input column name

    Definition Classes
    HasInputCol
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def isSet(param: Param[_]): Boolean

    Checks whether a param is explicitly set.

    Checks whether a param is explicitly set.

    Definition Classes
    Params
  21. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  22. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  23. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  25. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  26. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  27. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  28. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  29. def logName: String

    Attributes
    protected
    Definition Classes
    Logging
  30. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  31. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  32. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  33. def logWarning(msg: ⇒ String): Unit

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

    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  37. val numFeatures: IntParam

    number of features

  38. val outputCol: Param[String]

    param for output column name

    param for output column name

    Definition Classes
    HasOutputCol
  39. def outputDataType: DataType

    Returns the data type of the output column.

    Returns the data type of the output column.

    Attributes
    protected
    Definition Classes
    HashingTF → UnaryTransformer
  40. val paramMap: ParamMap

    Internal param map.

    Internal param map.

    Attributes
    protected
    Definition Classes
    Params
  41. def params: Array[Param[_]]

    Returns all params.

    Returns all params.

    Definition Classes
    Params
  42. def setInputCol(value: String): HashingTF

    Definition Classes
    UnaryTransformer
  43. def setNumFeatures(value: Int): HashingTF

  44. def setOutputCol(value: String): HashingTF

    Definition Classes
    UnaryTransformer
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  46. def toString(): String

    Definition Classes
    AnyRef → Any
  47. def transform(dataset: SchemaRDD, paramMap: ParamMap): SchemaRDD

    Transforms the dataset with provided parameter map as additional parameters.

    Transforms the dataset with provided parameter map as additional parameters.

    dataset

    input dataset

    paramMap

    additional parameters, overwrite embedded params

    returns

    transformed dataset

    Definition Classes
    UnaryTransformer → Transformer
  48. def transform(dataset: JavaSchemaRDD, paramMap: ParamMap): JavaSchemaRDD

    Transforms the dataset with provided parameter map as additional parameters.

    Transforms the dataset with provided parameter map as additional parameters.

    dataset

    input dataset

    paramMap

    additional parameters, overwrite embedded params

    returns

    transformed dataset

    Definition Classes
    Transformer
  49. def transform(dataset: JavaSchemaRDD, paramPairs: ParamPair[_]*): JavaSchemaRDD

    Transforms the dataset with optional parameters.

    Transforms the dataset with optional parameters.

    dataset

    input datset

    paramPairs

    optional list of param pairs, overwrite embedded params

    returns

    transformed dataset

    Definition Classes
    Transformer
    Annotations
    @varargs()
  50. def transform(dataset: SchemaRDD, paramPairs: ParamPair[_]*): SchemaRDD

    Transforms the dataset with optional parameters

    Transforms the dataset with optional parameters

    dataset

    input dataset

    paramPairs

    optional list of param pairs, overwrite embedded params

    returns

    transformed dataset

    Definition Classes
    Transformer
    Annotations
    @varargs()
  51. def transformSchema(schema: StructType, paramMap: ParamMap): StructType

    Derives the output schema from the input schema and parameters.

    Derives the output schema from the input schema and parameters.

    Definition Classes
    UnaryTransformer → PipelineStage
  52. def transformSchema(schema: StructType, paramMap: ParamMap, logging: Boolean): StructType

    Derives the output schema from the input schema and parameters, optionally with logging.

    Derives the output schema from the input schema and parameters, optionally with logging.

    Attributes
    protected
    Definition Classes
    PipelineStage
  53. def validate(): Unit

    Validates parameter values stored internally.

    Validates parameter values stored internally. Raise an exception if any parameter value is invalid.

    Definition Classes
    Params
  54. def validate(paramMap: ParamMap): Unit

    Validates parameter values stored internally plus the input parameter map.

    Validates parameter values stored internally plus the input parameter map. Raises an exception if any parameter is invalid.

    Definition Classes
    Params
  55. def validateInputType(inputType: DataType): Unit

    Validates the input type.

    Validates the input type. Throw an exception if it is invalid.

    Attributes
    protected
    Definition Classes
    UnaryTransformer
  56. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from UnaryTransformer[Iterable[_], Vector, HashingTF]

Inherited from HasOutputCol

Inherited from HasInputCol

Inherited from Transformer

Inherited from Params

Inherited from Identifiable

Inherited from PipelineStage

Inherited from Logging

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped