To execute this recipe, you need to have a working Spark environment. You would have already gone through the Creating an RDD for training recipe where we created training and testing datasets for estimating classification models.
No other prerequisites are required.