Question: Assignment Assignment: Cross - Validation and Hyperparameter Optimization with MNIST Dataset Assignment Topic In this assignment, students will use Scikit - Learn to build a
Assignment
Assignment: CrossValidation and Hyperparameter Optimization with MNIST Dataset
Assignment Topic
In this assignment, students will use ScikitLearn to build a classifier for the MNIST dataset and enhance its performance using CrossValidation, RandomizedSearchCV, and GridSearchCV. Students are expected to document their work in a detailed Python Notebook.
Assignment Steps
Load the MNIST Dataset:
Load the MNIST dataset using ScikitLearn or another suitable library.Split the data into training and test sets.
Explore the Data:
Visualize sample images from the dataset eg a few example images and their labelsProvide information about the dataset dimensions.
Define the Model:
Use a Support Vector Machine SVM classifier as the model.
Apply CrossValidation:
Use fold CrossValidation to calculate the baseline accuracy score of the model.Report the minimum and maximum accuracy scores obtained during CrossValidation.
Hyperparameter Optimization with RandomizedSearchCV:
Apply RandomizedSearchCV with the following hyperparameter ranges for the SVM model:
C: gamma: scale 'auto'kernel: linearrbf 'poly'
Report the best hyperparameters and the corresponding model score.
Hyperparameter Optimization with GridSearchCV:
Use a narrower range of hyperparameters based on the RandomizedSearchCV results and apply GridSearchCV.Report the best hyperparameters and the corresponding model score.
Compare Results:
Compare the baseline model, RandomizedSearchCV, and GridSearchCV results.Visualize the results in a table or chart.
Evaluate the Best Model on the Test Set:
Use the bestperforming model to evaluate accuracy on the test set.Visualize the confusion matrix and provide a brief interpretation.
Deliverables
Colab Notebook File:
Students must create their assignment using Google Colab.Write clean and wellcommented code.Include relevant visualizations and text explanations.
Colab Link Submission:
Share the Google Colab link along with appropriate permissions to access it
Results and Discussion:
Provide a brief discussion on model performance.Highlight the impact of CrossValidation and hyperparameter optimization.Report the minimum and maximum accuracy scores obtained during CrossValidation.
Evaluation Criteria
Criteria
Points
Dataset loading and exploration
CrossValidation implementation
Use of RandomizedSearchCV
Use of GridSearchCV
Visualization of results
Code quality and explanations
Results and discussion
Total
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
