Note: This lab has been generated using material from Chapter 3 in Hands-On Machine Learning with Scikit-Learn, Keras & TensorFlow. The following link (https://github.com/ ageron/handson-ml)contains the extended Jupyter notebook as well as more tasks so you can better familiarize yourself with Python and Scikit-learn.
- MNIST
MNIST dataset, is a set of 70,000 small images of digits handwritten by high school students and employees of the US Census Bureau. Each image is labeled with the digit it represents.
For the first task download and display some of the digits in the dataset.
- Binary Classifier
- Identify one digit for example, the number 5. This 5-detector will be an example of a binary classifier, capable of distinguishing between just two classes, 5 and not-5. For this task pick the Stochastic gradient descent classifier from the Scikit-Learns SGDClassifier class.
- Evaluate the performance of your classifier by (a) Measuring accuracy using cross-validation.
- The use of the confusion matrix.
- Understanding the precision/recall trade-off.
- The use of the ROC curve.
2.3 Compare the ROC curve generated by the RandomForestClassifier with the ROC curve generated by the SGDClassifier
Reviews
There are no reviews yet.