Data Mining - (Class|Category|Label) Target

About

A class is the category for a classifier which is given by the target. The number of class to be predicted define the classification problem.

A class is also known as a label.

Spark

from pyspark.mllib.regression import LabeledPoint

firstLabeledPoint = LabeledPoint('Play',[1,2,3])
SecondLabeledPoint = LabeledPoint('Don''t Play',[2,2,3])

firstLabeledPoint.label
firstLabeledPoint.features

Powered by ComboStrap