Class: HashingTF

eclairjs/ml/feature. HashingTF

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

Constructor

new HashingTF(uidopt)

Parameters:
Name Type Attributes Description
uid string <optional>
Source:

Extends

Methods

(static) load(path) → {module:eclairjs/mllib/feature.HashingTF}

Parameters:
Name Type Description
path string
Source:
Returns:
Type
module:eclairjs/mllib/feature.HashingTF

copy(extra) → {module:eclairjs/mllib/feature.HashingTF}

Parameters:
Name Type Description
extra module:eclairjs/ml/param.ParamMap
Overrides:
Source:
Returns:
Type
module:eclairjs/mllib/feature.HashingTF

getNumFeatures() → {number}

Source:
Returns:
Type
number

setInputCol(value) → {module:eclairjs/mllib/feature.HashingTF}

Parameters:
Name Type Description
value string
Source:
Returns:
Type
module:eclairjs/mllib/feature.HashingTF

setNumFeatures(value) → {module:eclairjs/mllib/feature.HashingTF}

Parameters:
Name Type Description
value number
Source:
Returns:
Type
module:eclairjs/mllib/feature.HashingTF

setOutputCol(value) → {module:eclairjs/mllib/feature.HashingTF}

Parameters:
Name Type Description
value string
Source:
Returns:
Type
module:eclairjs/mllib/feature.HashingTF

transform(dataset) → {module:eclairjs/sql.DataFrame}

Parameters:
Name Type Description
dataset module:eclairjs/sql.DataFrame
Overrides:
Source:
Returns:
Type
module:eclairjs/sql.DataFrame

transformSchema(schema) → {module:eclairjs/sql/types.StructType}

Parameters:
Name Type Description
schema module:eclairjs/sql/types.StructType
Overrides:
Source:
Returns:
Type
module:eclairjs/sql/types.StructType

uid() → {string}

An immutable unique ID for the object and its derivatives.
Source:
Returns:
Type
string