Class: ElementwiseProduct

eclairjs/ml/feature.ElementwiseProduct

Outputs the Hadamard product (i.e., the element-wise product) of each input vector with a provided "weight" vector. In other words, it scales each column of the dataset by a scalar multiplier.

Constructor

new ElementwiseProduct(uidopt)

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

Extends

Methods

(static) load(path) → {ElementwiseProduct}

Parameters:
Name Type Description
path string
Source:
Returns:
Type
ElementwiseProduct

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

getScalingVec() → {module:eclairjs/mllib/linalg.Vector}

Source:
Returns:
Type
module:eclairjs/mllib/linalg.Vector

scalingVec() → {module:eclairjs/ml/param.Param}

the vector to multiply with input vectors
Source:
Returns:
Type
module:eclairjs/ml/param.Param

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

setScalingVec(value) → {module:eclairjs/mllib/feature.ElementwiseProduct}

Parameters:
Name Type Description
value module:eclairjs/mllib/linalg.Vector
Source:
Returns:
Type
module:eclairjs/mllib/feature.ElementwiseProduct

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

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

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() → {Promise.<string>}

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