Question: Assignment # 1 : Building a Convolutional Neural Network - Model 2 Architecture Submitted on : 2 6 th September 2 0 2 4 @
Assignment # : Building a Convolutional Neural Network Model Architecture
Submitted on :th September @ : PM Total mark
Objective:
The goal of this assignment is to build and compile a convolutional neural network CNN with four convolutional block, each having a ConvD MaxPoolingD and a Dropout layer. You will also initialize an Adam optimizer and compile the model using the following configurations:
Assignment Instructions:
ModelArchitecture:ImplementtheCNNarchitecturewiththefollowing
configuration:
o ConvD Block :
ConvDlayerwithfilters,axkernel,'same'padding,and'relu' activation.
InputshapeforthefirstConvDlayer.
MaxPoolingDlayerwithaxkernelandstridesizeofx
Dropoutlayerwithadropoutratio.
o ConvD Block :
ConvDlayerwithfilters,axkernel,'same'padding,and'relu'
activation.
MaxPoolingDlayerwithaxkernelandstridesizeofx Dropoutlayerwithadropoutratio.
o ConvD Block :
ConvDlayerwithfilters,axkernel,'same'padding,and'relu'
activation.
MaxPoolingDlayerwithaxkernelandstridesizeofx Dropoutlayerwithadropoutratio.
o ConvD Block :
ConvDlayerwithfilters,axkernel,'same'padding,and'relu'
activation.
MaxPoolingDlayerwithaxkernelandstridesizeofx Dropoutlayerwithadropoutratio.
FlattenandFullyConnectedLayers:
o Add a Flatten layer to convert the output of the final convolutional block into
a D tensor.
o Add a fully connected Dense layer with neurons and 'relu' activation. o Add another fully connected Dense layer with neurons and 'relu'
activation.
o Add a final Dense layer with neurons and 'softmax' activation for multi class classification
OptimizerandModelCompilation:
o Initialize an Adam optimizer with a learning rate of o Compile the model using:
Lossfunction:categoricalcrossentropy.
Metrics:accuracy.
ModelSummaryandObservations:
o After building and compiling the model, print the model summary.
o Write down your observations based on the model architecture, including
the number of parameters in each layer and the overall complexity of the
model. Submission:
o Submit your Python code that implements the above architecture. o Provide your observations along with the model summary.
Assessment Criteria:
Correctness:
o The model architecture is correctly implemented as per the instructions. o All layers and configurations filters kernel size, dropout ratio, etc. are
appropriately defined. ModelCompilation:
o The model is compiled correctly with the specified optimizer, loss function, and metric.
Observations:
o Clear and insightful observations are provided based on the model
summary.
CodeOrganizationandClarity:
o The code is wellstructured, with proper comments and explanations for each step.
Optional Extension:
For additional credit, you can experiment with different learning rates, optimizers, or activation functions and observe how these changes affect the model's performance.
General Tips for Submitting Python Assignments:
Comment your code: Include comments explaining your logic and code structure to make it easier for your instructor to understand.
Test your code: Ensure the Python script runs without errors before submitting.
Submit on the blackboard files format in the original code with compiled
results in: ipynb and PDF file
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
