Machine Learning vs Deep Learning
- 22Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is artificial intelligence (AI) according to the tutorial?
22 questions
- 1
What is artificial intelligence (AI) according to the tutorial?
Model answer
AI is about building programs that can make decisions like a human, using code and data.
Explanation
The tutorial emphasizes that AI is just code and data, not magic, aimed at simulating human decisions and judgment.
- 2
What was the purpose of the early AI program Eliza?
Model answer
Eliza simulated a therapist by having a chat with users to ask and answer questions.
Explanation
The tutorial shows a screenshot of Eliza and explains it tried to simulate a therapist.
- 3
What is an expert system and how does it generate predictions?
Model answer
An expert system uses human-generated rules to make predictions.
Explanation
The tutorial contrasts expert systems with machine learning: expert systems rely on rules written by humans.
- 4
In the weather prediction example, what was the mean absolute error of the expert system?
Model answer
The expert system had a mean absolute error of 3.05 degrees Fahrenheit.
Explanation
The tutorial calculated the MAE for the expert system as 3.05 using the provided rules.
- 5
What is the key difference between supervised and unsupervised machine learning?
Model answer
Supervised learning is given data and something to predict, while unsupervised learning is given data and must find patterns without a target.
Explanation
The tutorial defines supervised ML as having a target to predict, and mentions unsupervised as finding patterns without a specific prediction.
- 6
Describe the decision tree example for R-rated movie entry.
Model answer
A decision tree checks if the person is under 17; if yes, checks if with an adult; if over 17, checks if they have enough money ($20).
Explanation
The tutorial uses the theater scenario to illustrate a simple decision tree with age and money conditions.
- 7
What is the equation for linear regression?
Model answer
y=Mx+b, where M is the slope and b is the y-intercept.
Explanation
The tutorial specifies linear regression predicts y from x using a linear relationship.
- 8
In linear regression, what does the slope M represent?
Model answer
The slope M is the value multiplied by the predictor x to contribute to the prediction.
Explanation
The tutorial explains that y=Mx+b, with M multiplied by today's temperature.
- 9
What does the y-intercept b represent in linear regression?
Model answer
The y-intercept b is the constant added to the product Mx to get the prediction.
Explanation
The tutorial shows that the intercept is added after multiplying by the coefficient.
- 10
Why is it important to evaluate a machine learning model on different data than it was trained on?
Model answer
To ensure the model learns general rules that apply to unseen data, not just memorizing training data.
Explanation
The tutorial uses the analogy of open-book vs closed-book tests: evaluating on unseen data checks if the model truly learned.
- 11
In the tutorial, how did adding rain as a predictor affect the linear regression model's error?
Model answer
Adding rain reduced the mean absolute error from 2.92 to 2.89.
Explanation
The tutorial shows MAE improved when using both T-Max and rain as predictors.
- 12
What is feature engineering?
Model answer
Creating new columns or features from existing data to give the algorithm a better view of the data.
Explanation
The tutorial defines feature engineering as adding extra columns like average temperature or ratio to improve predictions.
- 13
What features were engineered in the tutorial?
Model answer
The average temperature over the past 7 days and the ratio of today's temperature to that average.
Explanation
The tutorial creates these two columns to reduce error further.
- 14
What does deep learning automatically do that machine learning does not?
Model answer
Deep learning automatically creates both the features and the rules, eliminating manual feature engineering.
Explanation
The tutorial states machine learning requires feature engineering, while deep learning automates this.
- 15
What are the two main components applied repeatedly in a neural network?
Model answer
Linear transformations and non-linear activation functions.
Explanation
The tutorial explains deep learning repeatedly applies linear and non-linear functions to generate predictions.
- 16
What is the role of the ReLU activation function in a neural network?
Model answer
ReLU applies a non-linear transformation after a linear transformation, enabling the network to learn complex patterns.
Explanation
The tutorial shows ReLU being applied on top of a linear transformation in the network.
- 17
What does gradient descent do in a neural network?
Model answer
It automatically finds the correct values for all weights and biases by adjusting them based on prediction errors.
Explanation
The tutorial mentions gradient descent is used to learn the weights and biases.
- 18
What happens if the learning rate in a neural network is set too high?
Model answer
The network changes weights too fast and never reaches the correct values, missing them.
Explanation
The tutorial warns that a too-high learning rate causes the network to overshoot the optimal values.
- 19
What is a 'black box' model and how does it relate to deep learning?
Model answer
A black box model is one where it is difficult to understand why a prediction was made; deep learning models are often black boxes.
Explanation
The tutorial says deep learning models are sometimes called black boxes because it's hard to interpret internal decisions.
- 20
When is machine learning generally preferred over deep learning?
Model answer
Machine learning is usually better for tabular data (structured data like Excel sheets) because the data is already structured.
Explanation
The tutorial recommends ML for tabular data and mentions DL is better when the data structure must be learned (e.g., free text, images).
- 21
What type of data is deep learning particularly good at handling?
Model answer
Deep learning excels at data where the structure must be learned, such as free text or images.
Explanation
The tutorial cites algorithms like stable diffusion or GPT as examples of DL handling unstructured data.
- 22
What is a practical way to decide between machine learning and deep learning for a specific problem?
Model answer
Try both techniques and compare their performance using a strong error metric.
Explanation
The tutorial suggests testing both approaches to see which works better for your specific data.

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