Machine Learning Models Overview
- 40Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is machine learning primarily about?
What is machine learning primarily about?
40 questions
- 1
What is machine learning primarily about?
- A
Building neural networks that mimic the human brain
- B
Using labeled data to make predictions
- C
Giving computers data to learn patterns without explicit programming
- D
Writing detailed instructions for every possible scenario
Correct answer
CGiving computers data to learn patterns without explicit programming
Explanation
The content defines ML as giving data and letting computers figure things out instead of hard-coding.
- A
- 2
In supervised learning, how does the model learn?
- A
By finding patterns in unlabeled data without any guidance
- B
By comparing its predictions to labeled correct answers and adjusting
- C
By randomly generating outputs until one matches a known result
- D
By using a reward signal from the environment
Correct answer
BBy comparing its predictions to labeled correct answers and adjusting
Explanation
Supervised learning uses labeled data; the model compares its predictions to the correct answers and adjusts.
- A
- 3
What is the key difference between supervised and unsupervised learning?
- A
The presence or absence of labeled data
- B
The type of output (continuous vs discrete)
- C
The use of a kernel trick or not
- D
The number of layers in the neural network
Correct answer
AThe presence or absence of labeled data
Explanation
Supervised uses labeled data; unsupervised uses no labels.
- A
- 4
Which of the following tasks is an example of regression?
- A
Identifying whether a tumor is malignant
- B
Predicting tomorrow's temperature
- C
Determining if an image contains a cat or dog
- D
Classifying an email as spam or not spam
Correct answer
BPredicting tomorrow's temperature
Explanation
Regression predicts continuous values; temperature is continuous.
- A
- 5
What type of output does classification produce?
- A
A continuous numerical value
- B
A set of cluster centroids
- C
A discrete category
- D
A probability distribution over all possible values
Correct answer
CA discrete category
Explanation
Classification predicts a discrete category from a fixed set.
- A
- 6
In linear regression, what does the slope (β1) represent?
- A
The change in Y for a one-unit increase in X
- B
The error between predicted and actual values
- C
The point where the line crosses the Y-axis
- D
The predicted value of Y when X is zero
Correct answer
AThe change in Y for a one-unit increase in X
Explanation
β1 is the slope, how much Y changes per unit X.
- A
- 7
What is the purpose of the sigmoid function in logistic regression?
- A
To convert a linear output into a probability between 0 and 1
- B
To find the best-fitting line through data points
- C
To measure the distance between clusters
- D
To reduce the dimensionality of the feature space
Correct answer
ATo convert a linear output into a probability between 0 and 1
Explanation
Sigmoid squishes output to [0,1] for probability interpretation.
- A
- 8
In binary classification using logistic regression, when is an example predicted as positive?
- A
When the probability exceeds 0.5
- B
When the sigmoid output is exactly 0.5
- C
When the linear output is zero
- D
When the output is less than 0.5
Correct answer
AWhen the probability exceeds 0.5
Explanation
The usual cutoff is 0.5; above 0.5 means positive.
- A
- 9
What does multiple linear regression allow that simple linear regression does not?
- A
Using multiple independent variables to predict the output
- B
Predicting continuous values instead of discrete categories
- C
Handling non-linear relationships with a kernel trick
- D
Building an ensemble of models
Correct answer
AUsing multiple independent variables to predict the output
Explanation
Multiple linear regression uses multiple X features.
- A
- 10
What assumption does Naïve Bayes make about the input features?
- A
They are linearly separable
- B
They are all normally distributed
- C
They have equal variance
- D
They are all independent of each other
Correct answer
DThey are all independent of each other
Explanation
The "naïve" part assumes features are independent.
- A
- 11
In Naïve Bayes spam detection, how does the algorithm decide if an email is spam?
- A
By multiplying word probabilities given spam and comparing to not spam
- B
By building a tree of yes/no questions about email features
- C
By looking at the k closest emails in the training set
- D
By drawing a hyperplane between spam and non-spam emails
Correct answer
ABy multiplying word probabilities given spam and comparing to not spam
Explanation
It computes probability for each word independently and multiplies.
- A
- 12
How does KNN classify a new data point?
- A
By passing the input through a sigmoid function
- B
By taking a majority vote among its k nearest neighbors
- C
By finding the hyperplane that maximizes the margin
- D
By averaging the values of all training points
Correct answer
BBy taking a majority vote among its k nearest neighbors
Explanation
KNN classification uses majority vote of k nearest neighbors.
- A
- 13
What distance metric does KNN typically use to find neighbors?
- A
Euclidean distance
- B
Manhattan distance
- C
Mahalanobis distance
- D
Cosine similarity
Correct answer
AEuclidean distance
Explanation
The video says typically uses Euclidean distance.
- A
- 14
When KNN is used for regression, how is the prediction made?
- A
By taking the median of the neighbors' values
- B
By taking the average of the neighbors' values
- C
By using a weighted majority vote
- D
By fitting a linear regression on the neighbors
Correct answer
BBy taking the average of the neighbors' values
Explanation
For regression, it averages the neighbors' values.
- A
- 15
What is the goal of a Support Vector Machine?
- A
To find a hyperplane with the maximum margin separating classes
- B
To minimize the sum of squared errors
- C
To cluster data into k groups
- D
To generate new data that resembles the training data
Correct answer
ATo find a hyperplane with the maximum margin separating classes
Explanation
SVM aims to maximize the margin.
- A
- 16
What are support vectors in SVM?
- A
The vectors that are used in the kernel trick
- B
The data points closest to the hyperplane that define the margin
- C
The points that are misclassified by the hyperplane
- D
The centroids of each class
Correct answer
BThe data points closest to the hyperplane that define the margin
Explanation
Support vectors are the nearest points from each class.
- A
- 17
How does SVM handle data that is not linearly separable?
- A
By building an ensemble of linear SVMs
- B
By using a sigmoid function to squash the outputs
- C
By reducing the dimensionality with PCA
- D
By using the kernel trick to transform data into a higher dimension
Correct answer
DBy using the kernel trick to transform data into a higher dimension
Explanation
The kernel trick transforms data to higher dimension where it becomes separable.
- A
- 18
In a decision tree, what is the root node?
- A
The first and most important split at the top
- B
The node that handles the least important feature
- C
The node that averages predictions from multiple trees
- D
The final node where predictions are made
Correct answer
AThe first and most important split at the top
Explanation
Root node is the first split.
- A
- 19
What are leaf nodes in a decision tree?
- A
The nodes that split the data further
- B
The final nodes where predictions are made
- C
The root node and its immediate children
- D
The nodes that perform feature selection
Correct answer
BThe final nodes where predictions are made
Explanation
Leaf nodes are bottom nodes with predictions.
- A
- 20
How does Random Forest create diversity among its decision trees?
- A
By adjusting the learning rate for each tree
- B
By using different algorithms for each tree
- C
By training each tree on a random subset of data and a random subset of features
- D
By pruning each tree to a different depth
Correct answer
CBy training each tree on a random subset of data and a random subset of features
Explanation
Random Forest uses random data sampling and random feature selection.
- A
- 21
What is ensemble learning?
- A
Selecting the best model from a set of candidates
- B
Training a model on multiple datasets simultaneously
- C
Using a single model with multiple layers
- D
Combining multiple models to improve performance
Correct answer
DCombining multiple models to improve performance
Explanation
Ensemble learning combines multiple models.
- A
- 22
How does XGBoost differ from Random Forest in terms of tree construction?
- A
XGBoost requires the data to be linearly separable
- B
XGBoost uses only a single tree with many branches
- C
XGBoost builds trees sequentially, each correcting errors of the previous one
- D
XGBoost builds trees independently and averages them
Correct answer
CXGBoost builds trees sequentially, each correcting errors of the previous one
Explanation
XGBoost uses boosting, sequential correction of errors.
- A
- 23
What technique does XGBoost use to minimize the loss function?
- A
Gradient descent
- B
Simulated annealing
- C
Genetic algorithms
- D
Brute force search
Correct answer
AGradient descent
Explanation
The "gradient" part refers to gradient descent.
- A
- 24
In a neural network, what are the layers that perform the actual learning called?
- A
Output layers
- B
Input layers
- C
Convolutional layers
- D
Hidden layers
Correct answer
DHidden layers
Explanation
Hidden layers are where learning happens.
- A
- 25
What determines the influence of one node on the next in a neural network?
- A
The weight of the connection
- B
The activation function
- C
The learning rate
- D
The number of hidden layers
Correct answer
AThe weight of the connection
Explanation
Weights determine influence.
- A
- 26
What is the convolution operation in a CNN designed to do?
- A
Compute the average of all pixel values
- B
Slide a small filter across the image to detect patterns
- C
Reduce the image size by subsampling
- D
Apply a sigmoid function to each pixel
Correct answer
BSlide a small filter across the image to detect patterns
Explanation
Convolution slides a filter to detect patterns.
- A
- 27
What types of patterns does a CNN detect in its early layers?
- A
Color histograms
- B
Complex patterns like entire faces
- C
Simple patterns like edges and corners
- D
Text and numbers
Correct answer
CSimple patterns like edges and corners
Explanation
Early layers detect simple patterns.
- A
- 28
What type of data are CNNs specifically designed for?
- A
Sequential data like time series
- B
Tabular data with many features
- C
Data with spatial structure, such as images
- D
Text data for natural language processing
Correct answer
CData with spatial structure, such as images
Explanation
CNNs are designed for grid-like structure (images).
- A
- 29
What key mechanism allows Transformers to understand context across an entire sequence?
- A
Convolution
- B
Gradient boosting
- C
Recurrent connections
- D
Self-attention
Correct answer
DSelf-attention
Explanation
Transformers use self-attention to look at entire sequence.
- A
- 30
How do Transformers differ from older sequential models in processing text?
- A
They only work on short sentences
- B
They process the entire sentence at once rather than word by word
- C
They require less training data
- D
They use a single layer instead of multiple layers
Correct answer
BThey process the entire sentence at once rather than word by word
Explanation
Transformers process entire sequence at once.
- A
- 31
In a GAN, what is the role of the generator?
- A
To create fake data that looks realistic
- B
To compress the data into a lower dimension
- C
To discriminate between real and fake data
- D
To classify the generated data
Correct answer
ATo create fake data that looks realistic
Explanation
Generator creates fake data.
- A
- 32
What is the discriminator's job in a GAN?
- A
To compute the loss function
- B
To set the learning rate
- C
To determine whether data is real or fake
- D
To generate new data samples
Correct answer
CTo determine whether data is real or fake
Explanation
Discriminator distinguishes real from fake.
- A
- 33
How are both networks in a GAN trained?
- A
Simultaneously, in competition with each other
- B
Independently, with separate datasets
- C
Sequentially, generator first then discriminator
- D
Using reinforcement learning
Correct answer
ASimultaneously, in competition with each other
Explanation
They are trained simultaneously in competition.
- A
- 34
In K-Means clustering, what does the 'K' represent?
- A
The number of iterations
- B
The number of clusters to find
- C
The number of features to use
- D
The number of nearest neighbors
Correct answer
BThe number of clusters to find
Explanation
K is the number of clusters.
- A
- 35
How does K-Means define each cluster?
- A
By a decision tree with leaf nodes
- B
By a hyperplane that separates clusters
- C
By a centroid, the center point of the cluster
- D
By the mean of all points in the dataset
Correct answer
CBy a centroid, the center point of the cluster
Explanation
Each cluster has a centroid.
- A
- 36
What is the main goal of Principal Component Analysis (PCA)?
- A
To find natural groupings in unlabeled data
- B
To classify data into categories
- C
To predict a continuous value
- D
To reduce the number of features while preserving important information
Correct answer
DTo reduce the number of features while preserving important information
Explanation
PCA is for dimensionality reduction.
- A
- 37
What does PCA compute to find directions of maximum variation?
- A
The covariance matrix
- B
The confusion matrix
- C
The correlation matrix
- D
The precision matrix
Correct answer
AThe covariance matrix
Explanation
PCA computes the covariance matrix.
- A
- 38
In reinforcement learning, what is the role of the reward?
- A
It is used to initialize the agent's policy
- B
It is the final output of the agent
- C
It represents the state of the environment
- D
It provides feedback to the agent about whether an action was good or bad
Correct answer
DIt provides feedback to the agent about whether an action was good or bad
Explanation
Reward is feedback signal.
- A
- 39
How does the agent in reinforcement learning learn?
- A
By reducing the dimensionality of observations
- B
Through trial and error, discovering what actions maximize total reward
- C
By being given labeled examples of correct actions
- D
By clustering states into groups
Correct answer
BThrough trial and error, discovering what actions maximize total reward
Explanation
RL learns through trial and error.
- A
- 40
What is the policy in reinforcement learning?
- A
A strategy for deciding what action to take in any situation
- B
A neural network that generates data
- C
The environment's dynamics
- D
The reward function
Correct answer
AA strategy for deciding what action to take in any situation
Explanation
Policy is the agent's strategy.
- A

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