Answered step by step
Verified Expert Solution
Question
1 Approved Answer
0 / 5 points ( graded ) Complete the code in conv.py to build a convolutional model. For this, you need to make use of
points graded
Complete the code
in
conv.py to build a convolutional model.
For this, you need to make use of ConvD layers and MaxPoold layers and perhaps Dropout in PyTorch.
Make sure that the last layer of the neural network is a fully connected Linear layer. You may start with the
architecture used in the CNN in the previous tab, but modify to generate outputs.
Available Functions: You have access to the
module as to the
as
and to the
layer as
; No need to import anything.currentdir ospath.dirnameospath.abspathfile
syspath.appendcurrentdir
from trainutils import batchifydata, runepoch, trainmodel, Flatten
import utilsmultiMNIST as U
pathtodatadir Datasets
useminidataset True
batchsize
nbclasses
nbepoch
numclasses Press ESC then TAB or click outside of the code editor to exit
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started