đ 5 Mistakes I Made in My First CNN Project (That Ruined My Results)
đ I Thought My Model Was Working⌠Until It Wasnât When I built my first CNN model for brain tumor classification using MRI images, I felt confident. The code was running Accuracy looked good Predi...

Source: DEV Community
đ
I Thought My Model Was Working⌠Until It Wasnât When I built my first CNN model for brain tumor classification using MRI images, I felt confident. The code was running Accuracy looked good Predictions were coming The model classified images into: Glioma Meningioma Pituitary No Tumor Everything seemed fine⌠until I looked closer. đ The model wasnât learning what I thought it was. Here are the 5 mistakes that taught me more than any tutorial. â Mistake 1: Ignoring Class Distribution I didnât properly check: How many images per class? Whether all 4 classes were balanced? đ Result: The model became biased toward dominant classes. It looked accurateâbut struggled on minority classes. đźď¸ Class Imbalance Problem đ Lesson: In multi-class problems, imbalance is even more dangerous than binary cases. â Mistake 2: Increasing Model Complexity Without Reason I assumed: âMore layers = better classification across all 4 classesâ So I kept adding layers. đ Result: Training accuracy increased V