Class: MultilayerPerceptronClassificationModel

eclairjs/ml/classification. MultilayerPerceptronClassificationModel

Classification model based on the Multilayer Perceptron. Each layer has sigmoid activation function, output layer has softmax.

Constructor

new MultilayerPerceptronClassificationModel()

Source:

Extends

Methods

(static) load(path) → {module:eclairjs/ml/classification.MultilayerPerceptronClassificationModel}

Parameters:
Name Type Description
path string
Source:
Returns:
Type
module:eclairjs/ml/classification.MultilayerPerceptronClassificationModel

(static) read() → {module:eclairjs/ml/util.MLReader}

Source:
Returns:
Type
module:eclairjs/ml/util.MLReader

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

Parameters:
Name Type Description
extra module:eclairjs/ml/param.ParamMap
Overrides:
Source:
Returns:
Type
module:eclairjs/ml/classification.MultilayerPerceptronClassificationModel

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

Param for features column name.
Overrides:
Source:
Returns:
Type
module:eclairjs/ml/param.Param

getFeaturesCol() → {string}

Overrides:
Source:
Returns:
Type
string

getLabelCol() → {string}

Overrides:
Source:
Returns:
Type
string

getPredictionCol() → {string}

Overrides:
Source:
Returns:
Type
string

hasParent() → {boolean}

Inherited From:
Source:
Returns:
Type
boolean

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

Param for label column name.
Overrides:
Source:
Returns:
Type
module:eclairjs/ml/param.Param

layers() → {Array.<integer>}

Source:
Returns:
Type
Array.<integer>

numFeatures() → {integer}

Inherited From:
Source:
Returns:
Type
integer

parent() → {module:eclairjs/ml.Estimator}

Inherited From:
Source:
Returns:
Type
module:eclairjs/ml.Estimator

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

Param for prediction column name.
Overrides:
Source:
Returns:
Type
module:eclairjs/ml/param.Param

setFeaturesCol(value) → {object}

Parameters:
Name Type Description
value string
Inherited From:
Source:
Returns:
Type
object

setParent(parent) → {object}

Sets the parent of this model.
Parameters:
Name Type Description
parent module:eclairjs/ml.Estimator
Inherited From:
Source:
Returns:
Type
object

setPredictionCol(value) → {object}

Parameters:
Name Type Description
value string
Inherited From:
Source:
Returns:
Type
object

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

Transforms dataset by reading from featuresCol, calling [[predict()]], and storing the predictions as a new column predictionCol.
Parameters:
Name Type Description
dataset module:eclairjs/sql.Dataset input dataset
Inherited From:
Source:
Returns:
transformed dataset with [[predictionCol]] of type [[Double]]
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

validateAndTransformSchema(schema, fitting, featuresDataType) → {module:eclairjs/sql/types.StructType}

Validates and transforms the input schema with the provided param map.
Parameters:
Name Type Description
schema module:eclairjs/sql/types.StructType
fitting boolean whether this is in fitting
featuresDataType module:eclairjs/sql/types.DataType SQL DataType for FeaturesType. E.g., module:eclairjs/sql/types.VectorUDTfor vector features
Overrides:
Source:
Returns:
Type
module:eclairjs/sql/types.StructType

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

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

write() → {module:eclairjs/ml/util.MLWriter}

Source:
Returns:
Type
module:eclairjs/ml/util.MLWriter