LabeledPoint#

class pyspark.mllib.regression.LabeledPoint(label, features)[source]#

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

New in version 1.0.0.

Parameters
labelint

Label for this data point.

featurespyspark.mllib.linalg.Vector or convertible

Vector of features for this point (NumPy array, list, pyspark.mllib.linalg.SparseVector, or scipy.sparse column matrix).

Notes

‘label’ and ‘features’ are accessible as class attributes.