Skip to content
Kelvin Ng edited this page Dec 22, 2016 · 1 revision

LabeledPoint is a class for representing labeled data mainly for supervised machine learning.

It is basically a struct with two members, x and y. x is for storing the data and y is for storing the corresponding label. Usually LabeledPoint is used with Vector, with x being a Vector, but this is not a must.

Clone this wiki locally