Web programming

Write code to predict the species of flower using SGDClassifier.

Run it for Logistic Regression
Run it for Support Vector Machines

Report
Accuracy, Precision, Recall, and F1 for both runs
Run the metric with cross fold validation of 5.
Print the confusion matrix. Which species are most often confused with each other?

Sample Solution