Search for question
Question

Part 2

Implement a function that takes in vector w and an observation's LabeledPoint and

returns a (label, prediction) tuple. Note that we can predict by computing the dot

product between weights and an observation's features. Test this function on a

LabeledPoint RDD.

Fig: 1