Exercise

Predicting using a classification model

Now that you have fit your classifier, let's use it to predict the type of flower (or class) for some newly-collected flowers.

Information about petal width and length for several new flowers is stored in the variable targets. Using the classifier you fit, you'll predict the type of each flower.

Instructions

100 XP
  • Predict the flower type using the array X_predict.
  • Run the given code to visualize the predictions.