Finally define the "predict" method to make the predictions on a set of data. For each data in "X" it runs the above "_predict_single" method and returns the class label.
By
–

Finally define the "predict" method to make the predictions on a set of data. For each data in "X" it runs the above "_predict_single" method and returns the class label.