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