Multi-class Classification and Neural Networks
Introduction
In this exercise, you will implement one-vs-all logistic regression and neural networks to recognize handwritten digits. Before starting the programming exercise, we strongly recommend watching the video lectures and completing the review questions for the associated topics.
All the information you need for solving this assignment is in this notebook, and all the code you will be implementing will take place within this notebook. The assignment can be promptly submitted to the coursera grader directly from this notebook (code and instructions are included below).
Before we begin with the exercises, we need to import all libraries required for this programming exercise. Throughout the course, we will be using numpy for all arrays and matrix operations, matplotlib for plotting, and scipy for scientific and numerical computation functions and tools. You can find instructions on how to install required libraries in the README file in the github repository.
SectionPartSubmission functionPoints
1Regularized Logistic RegressionlrCostFunction30
2One-vs-all classifier trainingoneVsAll20
3One-vs-all classifier predictionpredictOneVsAll20
4Neural Network Prediction Functionpredict30
Total Points100
You are allowed to submit your solutions multiple times, and we will take only the highest score into consideration.