Python Data Science Jobs & Interviews
20.4K subscribers
188 photos
4 videos
25 files
326 links
Your go-to hub for Python and Data Science—featuring questions, answers, quizzes, and interview tips to sharpen your skills and boost your career in the data-driven world.

Admin: @Hussein_Sheikho
Download Telegram
#️⃣ CNN Basics Quiz

What is the primary purpose of a Convolutional Neural Network (CNN)?
A CNN is designed to process data with a grid-like topology, such as images, by using convolutional layers to automatically and adaptively learn spatial hierarchies of features.

What does the term "convolution" refer to in CNNs?
It refers to the mathematical operation where a filter (or kernel) slides over the input image to produce a feature map that highlights specific patterns like edges or textures.

Which layer in a CNN is responsible for reducing the spatial dimensions of the feature maps?
The **pooling layer**, especially **max pooling**, reduces dimensionality while retaining important information.

What is the role of the ReLU activation function in CNNs?
It introduces non-linearity by outputting the input directly if it's positive, otherwise zero, helping the network learn complex patterns.

Why are stride and padding important in convolutional layers?
Stride controls how much the filter moves at each step, while padding allows the output size to match the input size when needed.

What is feature extraction in the context of CNNs?
It’s the process by which CNNs identify and isolate relevant patterns (like shapes or textures) from raw input data through successive convolutional layers.

How does dropout help in CNN training?
It randomly deactivates neurons during training to prevent overfitting and improve generalization.

What is backpropagation used for in CNNs?
It computes gradients of the loss function with respect to each weight, enabling the network to update parameters and minimize error.

What is the main advantage of weight sharing in CNNs?
It reduces the number of parameters by allowing the same filter to be used across different regions of the image, improving efficiency.

What is a kernel in the context of CNNs?
A small matrix that slides over the input image to detect specific features, such as corners or lines.

Which layer typically follows the convolutional layers in a CNN architecture?
The **fully connected layer**, which combines all features into a final prediction.

What is overfitting in neural networks?
It occurs when a model learns the training data too well, including noise, leading to poor performance on new data.

What is data augmentation and why is it useful in CNNs?
It involves applying transformations like rotation or flipping to training images to increase dataset diversity and improve model robustness.

What is the purpose of batch normalization in CNNs?
It normalizes the inputs of each layer to stabilize and accelerate training by reducing internal covariate shift.

What is transfer learning in the context of CNNs?
It involves using a pre-trained CNN model and fine-tuning it for a new task, saving time and computational resources.

Which activation function is commonly used in the final layer of a classification CNN?
The **softmax function**, which converts raw scores into probabilities summing to one.

What is zero-padding in convolutional layers?
Adding zeros around the borders of the input image to maintain the spatial dimensions after convolution.

What is the difference between local receptive fields and global receptive fields?
Local receptive fields cover only a small region of the input, while global receptive fields capture broader patterns across the entire image.

What is dilation in convolutional layers?
It increases the spacing between kernel elements without increasing the number of parameters, allowing the network to capture larger contexts.

What is the significance of filter size in CNNs?
It determines the spatial extent of the pattern the filter can detect; smaller filters capture fine details, larger ones detect broader structures.

#️⃣ #CNN #DeepLearning #NeuralNetworks #ComputerVision #MachineLearning #ArtificialIntelligence #ImageRecognition #AI

By: @DataScienceQ 🚀
1