Machine Learning-Linear Classification

 

Using Preview the document . Write code to predict the species of the 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?