Question

Part 2 (20 points) Implement a function that takes in vector w and an observation's Labeled Point 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 Labeled Point RDD.

Fig: 1