Machine Learning vs Deep Learning
- 25Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
In which decades did artificial intelligence first emerge?
In which decades did artificial intelligence first emerge?
25 questions
- 1
In which decades did artificial intelligence first emerge?
- A
The 1950s and 1960s
- B
The 1940s and 1950s
- C
The 1990s and 2000s
- D
The 1970s and 1980s
Correct answer
AThe 1950s and 1960s
Explanation
AI arose in the 1950s and 1960s, with early programs like Eliza.
- A
- 2
What was the simulated role of the early AI program Eliza?
- A
A chess player
- B
A weather predictor
- C
A therapist
- D
A language translator
Correct answer
CA therapist
Explanation
Eliza simulated a therapist, engaging in conversation with users.
- A
- 3
What is the core idea of artificial intelligence according to the content?
- A
Replacing all human jobs with automation
- B
Creating machines that can feel emotions
- C
Building programs that can make decisions like a human
- D
Designing systems that can learn without data
Correct answer
CBuilding programs that can make decisions like a human
Explanation
AI is about building programs that can make decisions like a human, using code and data.
- A
- 4
What characterized expert systems, which were popular in the 1980s?
- A
They required no data to operate
- B
They automatically learned rules from data
- C
They used human-generated rules to make predictions
- D
They used neural networks with hidden layers
Correct answer
CThey used human-generated rules to make predictions
Explanation
Expert systems run human-generated rules to make predictions, as opposed to machine learning which automates rule generation.
- A
- 5
In supervised machine learning, what does the algorithm receive?
- A
Only data without any labels
- B
Predefined rules from humans
- C
A fully trained model
- D
Data and something to predict
Correct answer
DData and something to predict
Explanation
Supervised machine learning involves giving the algorithm data and something to predict, so it learns the rules for prediction.
- A
- 6
What is the key difference between supervised and unsupervised machine learning?
- A
Unsupervised learning always uses neural networks
- B
Supervised learning requires more data than unsupervised
- C
Supervised learning is only used for classification
- D
Supervised learning uses labeled data to predict; unsupervised finds patterns without labels
Correct answer
DSupervised learning uses labeled data to predict; unsupervised finds patterns without labels
Explanation
Supervised learning uses data with a target to predict, while unsupervised learning finds patterns in data without predefined targets.
- A
- 7
In the decision tree example for an R-rated movie, what two conditions determine whether to let someone in?
- A
Money and the movie's rating
- B
Age and whether they have enough money
- C
Age and whether they are with a parent
- D
Time of day and age
Correct answer
BAge and whether they have enough money
Explanation
The decision tree checks if the person is under 17 (and if they are with an adult) and if they have enough money ($20) for the ticket.
- A
- 8
What is the equation for linear regression?
- A
y=ax2+bx+c
- B
y=1+e−x1​
- C
y=mx+b
- D
y=m1​x1​+m2​x2​+…+b
Correct answer
Cy=mx+b
Explanation
Linear regression uses the equation y=mx+b, where m is the slope and b is the y-intercept.
- A
- 9
In linear regression, what do the slope (m) and intercept (b) represent?
- A
m is the error term, and b is the prediction
- B
m is multiplied by the input, and b is added to the result
- C
m is the number of predictors, and b is the learning rate
- D
m is the weight of bias, and b is the feature
Correct answer
Bm is multiplied by the input, and b is added to the result
Explanation
In y=mx+b, m is the slope (multiplier) and b is the y-intercept (added constant).
- A
- 10
Why is it important to evaluate a machine learning model on a test set that is different from the training set?
- A
To avoid using any data from the real world
- B
To ensure the model learns general rules that apply to new data
- C
To reduce the amount of data needed for training
- D
To make the model train faster
Correct answer
BTo ensure the model learns general rules that apply to new data
Explanation
Evaluating on different data ensures the model hasn't just memorized the training data and can generalize.
- A
- 11
When using multiple predictors in linear regression, the equation becomes which of the following?
- A
y=m1​x1​+m2​x2​+b
- B
y=m1​x1​+m2​x2​+…+b
- C
y=mx+b
- D
y=m1​x1​×m2​x2​+b
Correct answer
By=m1​x1​+m2​x2​+…+b
Explanation
With multiple predictors, the linear regression model has multiple slope coefficients, one for each predictor, plus the intercept.
- A
- 12
In the weather prediction example, what was the effect of adding the 'rain' predictor to the linear regression model?
- A
The slope coefficient for temperature became negative
- B
The mean absolute error increased from 2.89 to 2.92
- C
The mean absolute error decreased from 2.92 to 2.89
- D
The model became unable to make predictions
Correct answer
CThe mean absolute error decreased from 2.92 to 2.89
Explanation
Adding rain improved the model slightly, reducing MAE from 2.92 to 2.89.
- A
- 13
What is feature engineering in machine learning?
- A
Removing all features except the target variable
- B
Creating new columns or features from existing data to help the model make better predictions
- C
Automatically generating features using deep learning
- D
Replacing missing values with zeros
Correct answer
BCreating new columns or features from existing data to help the model make better predictions
Explanation
Feature engineering involves creating new features (e.g., rolling averages, ratios) from existing data to improve model performance.
- A
- 14
In the weather example, what two engineered features were added to reduce the error?
- A
Average temperature over the past 7 days and the ratio of today's temperature to that average
- B
Minimum temperature and precipitation
- C
Day of the week and month
- D
Difference between today's and yesterday's temperature and humidity
Correct answer
AAverage temperature over the past 7 days and the ratio of today's temperature to that average
Explanation
The features added were 'average temp' (rolling 7-day max temp) and 'temp ratio' (today's temp over average).
- A
- 15
What was the mean absolute error after feature engineering in the linear regression model?
- A
2.89
- B
2.92
- C
2.69
- D
3.05
Correct answer
C2.69
Explanation
After adding engineered features, the MAE improved to 2.69, down from 2.89.
- A
- 16
What is a key advantage of deep learning over traditional machine learning?
- A
Deep learning requires less data to train
- B
Deep learning models are always interpretable
- C
Deep learning automatically creates features from raw data
- D
Deep learning is easier to configure than machine learning
Correct answer
CDeep learning automatically creates features from raw data
Explanation
Deep learning automates feature engineering through hidden layers, while traditional ML often requires manual feature creation.
- A
- 17
In a neural network, what is the role of hidden layers?
- A
They store the training data for later use
- B
They directly output the final prediction
- C
They reduce the number of input features
- D
They generate new features from the input data
Correct answer
DThey generate new features from the input data
Explanation
Hidden layers in neural networks generate new features automatically as data flows through them.
- A
- 18
What two types of operations are repeatedly applied in a deep learning network?
- A
Random number generation and sorting
- B
Only non-linear functions
- C
Linear transformations and non-linear activation functions
- D
Only linear transformations
Correct answer
CLinear transformations and non-linear activation functions
Explanation
Neural networks repeatedly apply linear transformations (weights and biases) and non-linear activation functions like ReLU.
- A
- 19
Which algorithm is used to automatically find the correct weights and biases in a neural network?
- A
Gradient descent
- B
K-means clustering
- C
Decision tree learning
- D
Linear regression
Correct answer
AGradient descent
Explanation
Gradient descent iteratively adjusts weights and biases to minimize the error.
- A
- 20
What happens if the learning rate in gradient descent is set too high?
- A
The network will train very slowly
- B
The network will always converge to the global minimum
- C
The network will stop learning after one epoch
- D
The network may change weights too quickly and miss the correct values
Correct answer
DThe network may change weights too quickly and miss the correct values
Explanation
A high learning rate causes large updates that can overshoot optimal values, preventing convergence.
- A
- 21
In the neural network code example, how many times was each piece of data fed into the network?
- A
Ten times
- B
Until the error reached zero
- C
Five times
- D
Once
Correct answer
CFive times
Explanation
The outer loop ran five times (epochs), feeding each data point five times through the network.
- A
- 22
What was the mean absolute error achieved by the deep learning model in the weather prediction example?
- A
2.88
- B
2.92
- C
2.69
- D
2.89
Correct answer
A2.88
Explanation
The neural network had an MAE of 2.88, which was slightly worse than the best linear regression model with feature engineering (2.69).
- A
- 23
For which type of data is traditional machine learning typically better than deep learning?
- A
Data with fewer than 100 rows
- B
Time series data only
- C
Unstructured data like images and text
- D
Tabular data (like spreadsheets)
Correct answer
DTabular data (like spreadsheets)
Explanation
Machine learning excels at tabular/structured data because the features are already organized, while deep learning is better for unstructured data like images or free text.
- A
- 24
Why are deep learning models often called 'black box' models?
- A
It is difficult to understand how they arrive at a prediction
- B
Their code is proprietary and hidden
- C
They only work with black-and-white images
- D
They require a black background in the user interface
Correct answer
AIt is difficult to understand how they arrive at a prediction
Explanation
Deep learning models are hard to interpret; data goes in and a prediction comes out, but the internal reasoning is not easily accessible.
- A
- 25
According to the content, what is a recommended approach when deciding between machine learning and deep learning for a specific problem?
- A
Use only expert systems to avoid complexity
- B
Use machine learning if the data is small, otherwise deep learning
- C
Try both methods and compare their error metrics
- D
Always use deep learning because it is more advanced
Correct answer
CTry both methods and compare their error metrics
Explanation
The content suggests trying both techniques and measuring performance using a strong error metric to determine which works better for your data.
- A

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