Deep Learning for Computer Vision
- 103Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
103 questions
- 1A_____is a multi-dimensional array, the core data structure in TensorFlow.
Hint
It's the fundamental building block in TensorFlow, like a matrix but more general.
Answer
tensor
- 2A scalar (0-dimensional) tensor has_____dimensions.
Hint
Think about the number of indices needed to access a single element.
Answer
0
- 3A 1-dimensional tensor is also called a_____.
Hint
It's a list of numbers, like in linear algebra.
Answer
vector
- 4The function_____is used to create a constant tensor with specified values.
Hint
It's similar to creating a constant array in NumPy.
Answer
tf.constant
- 5When creating a tensor, you can specify the data type using the parameter_____.
Hint
It's short for 'data type'.
Answer
dtype
- 6The function_____creates a tensor with all elements set to 1.
Hint
It's similar to np.ones in NumPy.
Answer
tf.ones
- 7The function_____creates a tensor with all elements set to 0.
Hint
It's the counterpart of tf.ones.
Answer
tf.zeros
- 8The function_____creates an identity matrix tensor.
Hint
It's the tensor equivalent of np.eye.
Answer
tf.eye
- 9The function_____creates a tensor filled with a specific scalar value.
Hint
It's like np.full.
Answer
tf.fill
- 10To create a tensor with random values from a normal distribution, use the function_____.
Hint
It samples from a Gaussian distribution.
Answer
tf.random.normal
- 11The number of dimensions of a tensor is called its_____.
Hint
It's the tensor's dimensionality.
Answer
rank
- 12The total number of elements in a tensor is its_____.
Hint
It's the product of all dimensions.
Answer
size
- 13To select a subrange of elements from a tensor, you use_____notation.
Hint
It's similar to Python list slicing with colons.
Answer
slicing
- 14The_____symbol in tensor indexing is used to represent multiple unspecified dimensions.
Hint
It's three dots: ...
Answer
ellipsis
- 15Adding a scalar to a tensor involves the concept of_____.
Hint
It allows operations on tensors of different shapes.
Answer
broadcasting
- 16The function_____computes the matrix product of two tensors.
Hint
It's the tensor version of matrix multiplication.
Answer
tf.linalg.matmul
- 17The function_____transposes a tensor.
Hint
It swaps axes, like transposing a matrix.
Answer
tf.transpose
- 18A_____tensor is used for non-rectangular data where each row may have a different length.
Hint
Unlike a regular tensor, it can have variable-length sequences.
Answer
ragged
- 19A_____tensor efficiently stores data with a large number of zero elements.
Hint
It saves memory by only storing non-zero values and their indices.
Answer
sparse
- 20A tensor with string elements is called a_____tensor.
Hint
It holds text data.
Answer
string
- 21A_____is a mutable tensor that can be updated during training.
Hint
Unlike constants, this tensor's value can change.
Answer
tf.Variable
- 22To assign a new value to a tf.Variable, use the method_____.
Hint
It sets the variable's value to a given tensor.
Answer
assign
- 23To add a value to a tf.Variable in-place, use the method_____.
Hint
It adds the given tensor to the current value.
Answer
assign_add
- 24To subtract a value from a tf.Variable in-place, use the method_____.
Hint
It subtracts the given tensor from the current value.
Answer
assign_sub
- 25In a linear regression model, the output of a Dense layer is computed as $Y =_____
- X + B$.
Hint
It's the weight matrix.
Answer
W
- 26The_____layer in TensorFlow normalizes input features using mean and variance.
Hint
It's a preprocessing layer for scaling features.
Answer
Normalization
- 27The loss function_____penalizes outliers heavily because it squares the errors.
Hint
It's the average of squared differences between predictions and targets.
Answer
Mean Squared Error (MSE)
- 28The loss function_____is more robust to outliers because it uses absolute differences.
Hint
It's the average of absolute differences.
Answer
Mean Absolute Error (MAE)
- 29The_____loss combines properties of both MSE and MAE, being quadratic for small errors and linear for larger ones.
Hint
It has a parameter that controls the transition point.
Answer
Huber
- 30The optimizer_____updates model parameters using the learning rate and gradient of the loss.
Hint
It's the basic optimizer that moves in the direction of steepest descent.
Answer
Stochastic Gradient Descent (SGD)
- 31A popular optimizer that adapts the learning rate for each parameter is_____.
Hint
It combines momentum and adaptive learning rates.
Answer
Adam
- 32If the learning rate is too large, training may_____.
Hint
The loss may increase instead of decrease.
Answer
diverge
- 33The metric_____is the square root of the mean of squared errors.
Hint
It's in the same units as the target variable.
Answer
Root Mean Square Error (RMSE)
- 34A dataset should be split into training, validation, and_____sets.
Hint
This set is used for final evaluation after model selection.
Answer
test
- 35The_____method in tf.data.Dataset shuffles the data randomly each epoch.
Hint
It randomizes the order of examples.
Answer
shuffle
- 36The_____method in tf.data.Dataset groups consecutive elements into batches.
Hint
It returns a dataset of batches from the original dataset.
Answer
batch
- 37The_____method in tf.data.Dataset prepares data for efficient streaming by overlapping preprocessing.
Hint
It allows data preparation to happen in parallel with training.
Answer
prefetch
- 38An image is represented as a tensor of shape (height, width,_____).
Hint
Usually 3 for RGB images.
Answer
channels
- 39The dataset_____provides the Malaria cell images dataset for binary classification.
Hint
It's a library of ready-to-use datasets.
Answer
tensorflow_datasets
- 40Pixel values are typically normalized by dividing by_____to scale them between 0 and 1.
Hint
The maximum pixel intensity value.
Answer
255
- 41A_____layer uses a small filter that slides over the input to detect features.
Hint
It's the fundamental building block for processing grid-like data.
Answer
Convolutional
- 42The parameter_____controls the step size of the filter as it slides across the input.
Hint
It determines how many pixels the filter moves at a time.
Answer
stride
- 43The two common types of padding are 'valid' and_____.
Hint
'same' pads the input so output size equals input size.
Answer
same
- 44The_____activation function introduces non-linearity and sets negative values to zero.
Hint
It's the most common activation in hidden layers.
Answer
ReLU
- 45The_____layer normalizes the outputs of a layer to stabilize training.
Hint
It reduces internal covariate shift.
Answer
Batch Normalization
- 46A_____layer reduces the spatial dimensions of a feature map by taking the maximum or average of a window.
Hint
It downsamples the representation.
Answer
Pooling
- 47The_____layer converts a multi-dimensional feature map into a 1D vector for classification.
Hint
It's used before the final dense layers.
Answer
Flatten
- 48For binary classification, the standard loss function is_____.
Hint
It measures the difference between true and predicted probabilities.
Answer
Binary Cross-Entropy
- 49Besides accuracy, important metrics when classes are imbalanced include precision, recall, and_____.
Hint
It's the harmonic mean of precision and recall.
Answer
F1-score
- 50The_____API in Keras is a linear stack of layers, ideal for simple models.
Hint
It's the simplest way to define a model layer by layer.
Answer
Sequential
- 51The_____API allows models with multiple inputs, outputs, and shared layers.
Hint
It supports complex topologies like skip connections.
Answer
Functional
- 52Building a model by subclassing_____provides maximum flexibility for custom forward passes.
Hint
You define the call method for custom logic.
Answer
tf.keras.Model
- 53To create a custom layer, you subclass_____.
Hint
You can define weights and behavior in the call method.
Answer
tf.keras.layers.Layer
- 54The context manager_____is used to record gradients for custom training loops.
Hint
It records operations for automatic differentiation.
Answer
tf.GradientTape
- 55By default, TensorFlow executes operations immediately in_____mode.
Hint
It's the default mode since TF 2.0.
Answer
eager
- 56The decorator_____converts a Python function into a callable TensorFlow graph.
Hint
It traces the function into a static graph for performance.
Answer
@tf.function
- 57A_____is an object that performs actions at various stages of training (e.g., early stopping).
Hint
It's passed to model.fit to automate tasks.
Answer
callback
- 58The callback_____stops training when a monitored metric stops improving.
Hint
It prevents overfitting by halting training early.
Answer
EarlyStopping
- 59The callback_____saves the model's weights at specified intervals, often when a metric improves.
Hint
It saves the best model during training.
Answer
ModelCheckpoint
- 60The callback_____adjusts the learning rate according to a schedule function.
Hint
It calls a function to get new learning rate each epoch.
Answer
LearningRateScheduler
- 61The callback_____reduces the learning rate when a metric has plateaued.
Hint
It decreases the learning rate when improvement stalls.
Answer
ReduceLROnPlateau
- 62The_____callback logs metrics for visualization in TensorBoard.
Hint
It writes logs that can be viewed in a web interface.
Answer
TensorBoard
- 63The data augmentation technique_____creates new samples by combining two images and their labels linearly.
Hint
It mixes images using a random weight.
Answer
Mixup
- 64The data augmentation technique_____cuts a patch from one image and pastes it onto another, adjusting labels.
Hint
It combines images by swapping regions.
Answer
CutMix
- 65A popular library for advanced image augmentations is_____.
Hint
It provides fast and diverse image transformations.
Answer
Albumentations
- 66Weights & Biases (W&B) is an MLOps platform that integrates with Keras via a_____.
Hint
It's passed to model.fit like other callbacks.
Answer
callback
- 67TFRecord is an efficient binary format for storing_____data.
Hint
It's used for large-scale data pipelines.
Answer
serialized
- 68Overfitting occurs when a model performs well on training data but poorly on_____data.
Hint
Data not used during training.
Answer
unseen
- 69Underfitting occurs when a model is too_____to capture the underlying pattern in the data.
Hint
The model lacks capacity.
Answer
simple
- 70The technique_____randomly drops out a fraction of neurons during training to prevent overfitting.
Hint
It forces the network to learn redundant representations.
Answer
Dropout
- 71Regularization that adds a penalty proportional to the absolute value of weights is called_____regularization.
Hint
It can lead to sparse weights.
Answer
L1
- 72Regularization that adds a penalty proportional to the square of weights is called_____regularization.
Hint
It's also known as weight decay.
Answer
L2
- 73For multi-class classification, the output layer uses a_____activation to produce a probability distribution.
Hint
It ensures the outputs sum to 1.
Answer
softmax
- 74The loss function for multi-class classification with integer labels is_____.
Hint
It's used when labels are integers, not one-hot encoded.
Answer
SparseCategoricalCrossentropy
- 75The metric_____measures accuracy when the true class is among the top K predicted classes.
Hint
It's more permissive than standard accuracy.
Answer
TopKCategoricalAccuracy
- 76AlexNet, introduced in 2012, used_____activations and multiple GPUs for training.
Hint
This activation helped solve the vanishing gradient problem.
Answer
ReLU
- 77VGGNet showed that using many stacked layers with_____filters is effective and computationally efficient.
Hint
Small filters are used throughout the network.
Answer
3x3
- 78ResNet introduced_____blocks with skip connections to allow training of very deep networks.
Hint
They add the input to the output of a layer.
Answer
residual
- 79MobileNet uses_____separable convolutions to reduce computational cost.
Hint
It separates spatial and channel convolutions.
Answer
depthwise
- 80EfficientNet uses a compound scaling method to uniformly scale_____, width, and input resolution.
Hint
It's one of the three scaling dimensions: depth, width, resolution.
Answer
depth
- 81Transfer learning uses a_____model trained on a large dataset as a feature extractor for a new task.
Hint
It's already learned general features.
Answer
pre-trained
- 82Fine-tuning involves unfreezing some layers of a pre-trained model and training with a very_____learning rate.
Hint
To prevent destroying learned features.
Answer
low
- 83Grad-CAM produces a_____that highlights regions of the input image important for a model's prediction.
Hint
It's a class activation map.
Answer
heatmap
- 84Vision Transformers (ViTs) split an image into fixed-size_____for processing.
Hint
They are flattened and linearly embedded.
Answer
patches
- 85ViTs add a learnable_____token whose final representation is used for classification.
Hint
It's similar to the [CLS] token in BERT.
Answer
class
- 86The ONNX format allows models to be converted between different frameworks and run using_____.
Hint
It's a cross-platform inference engine.
Answer
ONNX Runtime
- 87Quantization reduces model size and speeds up inference by converting weights to_____-bit integers.
Hint
It's a common lower precision format.
Answer
8
- 88TensorFlow_____is a library for deploying models on mobile and edge devices.
Hint
It's optimized for on-device inference.
Answer
Lite
- 89A REST API can be built to serve a model using the_____framework.
Hint
It's a modern Python web framework.
Answer
FastAPI
- 90The tool_____is used for load testing APIs by simulating multiple users.
Hint
It defines user behavior in Python.
Answer
Locust
- 91YOLO frames object detection as a_____problem, predicting bounding boxes and class probabilities from the entire image.
Hint
It directly outputs coordinates and confidence scores.
Answer
regression
- 92YOLO divides the input image into an S×S_____.
Hint
Each cell is responsible for detecting objects whose center falls in it.
Answer
grid
- 93In YOLO, each grid cell predicts_____bounding boxes.
Hint
It's a hyperparameter, often 2.
Answer
B
- 94The bounding box coordinates in YOLO are predicted relative to the_____cell.
Hint
They are offset from the cell's location.
Answer
grid
- 95Intersection over Union (IoU) is a metric used to measure the overlap between_____boxes.
Hint
It's used to determine if a detection is valid.
Answer
bounding
- 96Non-Max Suppression (NMS) is a post-processing step that eliminates_____detections by removing boxes with high IoU overlap.
Hint
It keeps only the most confident bounding box per object.
Answer
duplicate
- 97In a Variational Autoencoder (VAE), the encoder outputs a_____and variance for each latent feature.
Hint
It defines a probability distribution in the latent space.
Answer
mean
- 98The_____trick in VAEs allows backpropagation through the random sampling process.
Hint
It expresses the sample as a deterministic function of parameters and noise.
Answer
reparameterization
- 99The VAE loss consists of a reconstruction loss and a_____divergence loss acting as a regularizer.
Hint
It measures difference between the learned distribution and a prior.
Answer
KL
- 100In a Generative Adversarial Network (GAN), the_____network tries to create realistic fake data.
Hint
It learns to produce synthetic samples.
Answer
Generator
- 101In a GAN, the_____network tries to distinguish real data from generated ones.
Hint
It acts as a classifier.
Answer
Discriminator
- 102DCGAN stands for Deep Convolutional_____.
Hint
It uses convolutional layers in both Generator and Discriminator.
Answer
Generative Adversarial Network
- 103One tip for stable GAN training is to use_____smoothing, where real labels are set to a value less than 1.
Hint
It prevents the Discriminator from becoming too confident.
Answer
label

Ask anything
We've read this whole study set, so questions about it get the best answers.