In this exercise, you will implement a multiclass classifier using the concepts learned in previous exercises.
- Enhance your understanding of multiclass classification.
- Reuse and modify solutions from previous exercises.
- Implement and train a multiclass classifier model.
- Evaluate the performance of the model.
You can reuse your solutions for define_dense_model_single_layer and define_dense_model_with_hidden_layer from Exercise 4. However, you need to fill in the functions fit_mnist_model and evaluate_mnist_model. Try to experiment with the number of epochs and batch size if the tests do not pass initially.
- After committing and pushing your code, check the mark on the top line (near the commit ID).
- If some tests are failing, click on the ❌ to open up a popup, which will show details about the errors.
- You can click the Details link to see what went wrong. Pay special attention to lines with the words "Failed" or "error".
- Near the bottom of the Details page, you can see your score. Here are examples of 0/5 and 5/5:
- When you achieve a perfect score, you will see a green checkmark near the commit ID.
- You can test your code locally by installing and running
pytest(pip install pytestorconda install pytest). - Run the tests using the command
pytestin your terminal. This will show the status of each test and any errors that occurred.
Good luck!



