This lab introduces some basic concepts of machine learning with Python. In this lab you will use the K-Nearest Neighbor (KNN) algorithm to classify the species of iris flowers, given measurements of flower characteristics.
- Follow and understand a complete end-to-end machine learning process including data exploration, data preparation, modeling, and model evaluation.
- Develop a basic understanding of the principles of machine learning and associated terminology.
- Understand the basic process for evaluating machine learning models.
- Make sure that you have completed the setup requirements as described in requirement.txt.
- Now, run jupyter notebook and open the “VisualizingDataForClassification.ipynb” notebook under this project.
- Examine the notebook and answer the questions along the way.
Question1: From the plot, which species are more separated than the others?
Question2: What is the accuracy printed?
Question3: How many cases are mis-classified?
- Make sure that you have completed the setup requirements as described in requirement.txt.
- Now, run jupyter notebook and open the “Bagging.ipynb” notebook under this project.
- Examine the notebook and answer the questions along the way.
Question1: What is the accuracy of the model with 40 trees? Question2: What is the accuracy of the model with reduced feature sets?
- Make sure that you have completed the setup requirements as described in requirement.txt.
- Now, run jupyter notebook and open the “Boosting.ipynb” notebook under this project.
- Examine the notebook and answer the questions along the way.
Question1: What is the accuracy of the model with reduced feature sets?
- Make sure that you have completed the setup requirements as described in requirement.txt.
- Now, run jupyter notebook and open the “NeuralNetworks.ipynb” notebook under this project.
- Examine the notebook and answer the questions along the way.
Question1: What is the accuracy of the model with (100,100) hidden_layer_size?
- Make sure that you have completed the setup requirements as described in requirement.txt.
- Now, run jupyter notebook and open the “SupportedVectorMachines.ipynb” notebook under this project.
- Examine the notebook and answer the questions along the way.
Question1: What is the accuracy of the model with nonlinear SVM?
- Make sure that you have completed the setup requirements as described in requirement.txt.
- Now, run jupyter notebook and open the “NaiveBayes.ipynb” notebook under this project.
- Examine the notebook and answer the questions along the way.
Question1: What is the accuracy of the model with Gaussian Naive Bayes?