Now that we're familiar with the famous iris dataset, let's actually use a classification model in scikit-learn to predict the species of an iris! We'll learn how the K-nearest neighbors (KNN) model works, and then walk through the four steps for model training and prediction in scikit-learn. Finally, we'll see how easy it is to try out a different classification model, namely logistic regression.
Download the notebook: https://github.com/justmarkham/scikit-learn-videos
Iris dataset: http://archive.ics.uci.edu/ml/datasets/Iris
Nearest Neighbors user guide: http://scikit-learn.org/stable/modules/neighbors.html
KNeighborsClassifier class documentation: http://scikit-learn.org/stable/modules/generated/sklearn.neighbors.KNeighborsClassifier.html
Logistic Regression user guide: http://scikit-learn.org/stable/modules/linear_model.html#logistic-regression
LogisticRegression class documentation: http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html
Videos from An Introduction to Statistical Learning: https://www.dataschool.io/15-hours-of-expert-machine-learning-videos/
WANT TO GET BETTER AT MACHINE LEARNING? HERE ARE YOUR NEXT STEPS:
1) WATCH my scikit-learn video series:
https://www.youtube.com/playlist?list=PL5-da3qGB5ICeMbQuqbbCOQWcS6OYBr5A
2) SUBSCRIBE for more videos:
https://www.youtube.com/dataschool?sub_confirmation=1
3) JOIN "Data School Insiders" to access bonus content:
https://www.patreon.com/dataschool
4) ENROLL in my Machine Learning course:
https://www.dataschool.io/learn/
5) LET'S CONNECT!
- Newsletter: https://www.dataschool.io/subscribe/
- Twitter: https://twitter.com/justmarkham
- Facebook: https://www.facebook.com/DataScienceSchool/
- LinkedIn: https://www.linkedin.com/in/justmarkham/