🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 28: CNN with Dropout Counter

ML Engineer
Current Task

Objective

Review day: combine CNNs and Dropout — days 16 and 20 — in one model.

Task: build a CNN with a Dropout layer between the pooling and dense layers, and print its total parameter count.

index.py
import tensorflow as tf from tensorflow.keras import layers, Sequential model = Sequential([ layers.Conv2D(8, (3, 3), activation='relu', input_shape=(28, 28, 1)), layers.MaxPooling2D((2, 2)), layers.Dropout(0.3), layers.Flatten(), layers.Dense(10, activation='softmax') ]) print(model.count_params())

* Hint: Correct characters turn green, incorrect ones turn red.

Live Preview
🖼️

Verify your code to see the preview