Class: LabeledPoint

eclairjs/mllib/regression.LabeledPoint

Class that represents the features and labels of a data point.

Constructor

new LabeledPoint(label, features)

Parameters:
Name Type Description
label double
features module:eclairjs/mllib/linalg.Vector
Source:

Methods

(static) parse(s) → {module:eclairjs/mllib/regression.LabeledPoint}

Parses a string resulted from `LabeledPoint#toString` into an LabeledPoint.
Parameters:
Name Type Description
s string
Source:
Returns:
Type
module:eclairjs/mllib/regression.LabeledPoint

toString() → {Promise.<string>}

Source:
Returns:
Type
Promise.<string>