Class: Normalizer

eclairjs/ml/feature. Normalizer

Normalize a vector to have unit norm using the given p-norm.

Constructor

new Normalizer(uidopt)

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

Extends

Methods

(static) load(path) → {module:eclairjs/ml/feature.Normalizer}

Parameters:
Name Type Description
path string
Source:
Returns:
Type
module:eclairjs/ml/feature.Normalizer

copy(extra) → {module:eclairjs/ml.UnaryTransformer}

Parameters:
Name Type Description
extra module:eclairjs/ml/param.ParamMap
Inherited From:
Source:
Returns:
Type
module:eclairjs/ml.UnaryTransformer

getP() → {float}

Source:
Returns:
Type
float

p() → {module:eclairjs/ml/param.DoubleParam}

Normalization in L^p^ space. Must be >= 1. (default: p = 2)
Source:
Returns:
Type
module:eclairjs/ml/param.DoubleParam

setInputCol(value) → {module:eclairjs/ml.UnaryTransformer}

Parameters:
Name Type Description
value string
Inherited From:
Source:
Returns:
Type
module:eclairjs/ml.UnaryTransformer

setOutputCol(value) → {module:eclairjs/ml.UnaryTransformer}

Parameters:
Name Type Description
value string
Inherited From:
Source:
Returns:
Type
module:eclairjs/ml.UnaryTransformer

setP(value) → {module:eclairjs/ml/feature.Normalizer}

Parameters:
Name Type Description
value float
Source:
Returns:
Type
module:eclairjs/ml/feature.Normalizer

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

Parameters:
Name Type Description
dataset module:eclairjs/sql.Dataset
Inherited From:
Source:
Returns:
Type
module:eclairjs/sql.Dataset

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

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

uid() → {string}

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