Question: . Download the MNIST dataset and make a custom dataloader using torch.utils.data.Dataset, DataLoader. Compare the loading performance of your scratch implemented data loader with the
Download the MNIST dataset and make a custom dataloader using torch.utils.data.Dataset, DataLoader.
Compare the loading performance of your scratch implemented data loader with the one provided by PyTorch
across different batch sizes Plot a graph illustrating the relationship between batch size
and loading time.
Implement a FeedForward neural network architecture from scratch featuring four hidden layers, each comprising
minimum neurons excluding input and output layers Train the model using the most effective data loader
identified in the previous question with ReLU activation function. Employ the CrossEntropy loss function
and opt for the Stochastic Gradient Descent SGD optimizer with default parameters, setting the learning
rate to Plot graphs depicting the loss and accuracy during training, validation and testing for a total of
epochs.
Use class and objects
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
