Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from pyspark.mllib.regression import LabeledPoint
# set a Label against a Dense Vector
point_1 = LabeledPoint(1,Vectors.dense([1,2,3,4,5]))
# Features
print(point_1.features)
# Label
print(point_1.label)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.