1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning vs Deep Learning

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Machine Learning vs Deep Learning

  • 25Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: AI Basics

In which decades did artificial intelligence first emerge?

25 questions

  1. 1

    In which decades did artificial intelligence first emerge?

    1. A

      The 1950s and 1960s

    2. B

      The 1940s and 1950s

    3. C

      The 1990s and 2000s

    4. D

      The 1970s and 1980s

    Correct answer
    A

    The 1950s and 1960s

    Explanation

    AI arose in the 1950s and 1960s, with early programs like Eliza.

  2. 2

    What was the simulated role of the early AI program Eliza?

    1. A

      A chess player

    2. B

      A weather predictor

    3. C

      A therapist

    4. D

      A language translator

    Correct answer
    C

    A therapist

    Explanation

    Eliza simulated a therapist, engaging in conversation with users.

  3. 3

    What is the core idea of artificial intelligence according to the content?

    1. A

      Replacing all human jobs with automation

    2. B

      Creating machines that can feel emotions

    3. C

      Building programs that can make decisions like a human

    4. D

      Designing systems that can learn without data

    Correct answer
    C

    Building 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.

  4. 4

    What characterized expert systems, which were popular in the 1980s?

    1. A

      They required no data to operate

    2. B

      They automatically learned rules from data

    3. C

      They used human-generated rules to make predictions

    4. D

      They used neural networks with hidden layers

    Correct answer
    C

    They 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.

  5. 5

    In supervised machine learning, what does the algorithm receive?

    1. A

      Only data without any labels

    2. B

      Predefined rules from humans

    3. C

      A fully trained model

    4. D

      Data and something to predict

    Correct answer
    D

    Data and something to predict

    Explanation

    Supervised machine learning involves giving the algorithm data and something to predict, so it learns the rules for prediction.

  6. 6

    What is the key difference between supervised and unsupervised machine learning?

    1. A

      Unsupervised learning always uses neural networks

    2. B

      Supervised learning requires more data than unsupervised

    3. C

      Supervised learning is only used for classification

    4. D

      Supervised learning uses labeled data to predict; unsupervised finds patterns without labels

    Correct answer
    D

    Supervised 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.

  7. 7

    In the decision tree example for an R-rated movie, what two conditions determine whether to let someone in?

    1. A

      Money and the movie's rating

    2. B

      Age and whether they have enough money

    3. C

      Age and whether they are with a parent

    4. D

      Time of day and age

    Correct answer
    B

    Age 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.

  8. 8

    What is the equation for linear regression?

    1. A

      y=ax2+bx+cy = ax^2 + bx + cy=ax2+bx+c

    2. B

      y=11+e−xy = \frac{1}{1+e^{-x}}y=1+e−x1​

    3. C

      y=mx+by = mx + by=mx+b

    4. D

      y=m1x1+m2x2+…+by = m_1x_1 + m_2x_2 + \ldots + by=m1​x1​+m2​x2​+…+b

    Correct answer
    C

    y=mx+by = mx + by=mx+b

    Explanation

    Linear regression uses the equation y=mx+by = mx + by=mx+b, where mmm is the slope and bbb is the y-intercept.

  9. 9

    In linear regression, what do the slope (mmm) and intercept (bbb) represent?

    1. A

      mmm is the error term, and bbb is the prediction

    2. B

      mmm is multiplied by the input, and bbb is added to the result

    3. C

      mmm is the number of predictors, and bbb is the learning rate

    4. D

      mmm is the weight of bias, and bbb is the feature

    Correct answer
    B

    mmm is multiplied by the input, and bbb is added to the result

    Explanation

    In y=mx+by = mx + by=mx+b, mmm is the slope (multiplier) and bbb is the y-intercept (added constant).

  10. 10

    Why is it important to evaluate a machine learning model on a test set that is different from the training set?

    1. A

      To avoid using any data from the real world

    2. B

      To ensure the model learns general rules that apply to new data

    3. C

      To reduce the amount of data needed for training

    4. D

      To make the model train faster

    Correct answer
    B

    To 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.

  11. 11

    When using multiple predictors in linear regression, the equation becomes which of the following?

    1. A

      y=m1x1+m2x2+by = m_1x_1 + m_2x_2 + by=m1​x1​+m2​x2​+b

    2. B

      y=m1x1+m2x2+…+by = m_1x_1 + m_2x_2 + \ldots + by=m1​x1​+m2​x2​+…+b

    3. C

      y=mx+by = mx + by=mx+b

    4. D

      y=m1x1×m2x2+by = m_1x_1 \times m_2x_2 + by=m1​x1​×m2​x2​+b

    Correct answer
    B

    y=m1x1+m2x2+…+by = m_1x_1 + m_2x_2 + \ldots + 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.

  12. 12

    In the weather prediction example, what was the effect of adding the 'rain' predictor to the linear regression model?

    1. A

      The slope coefficient for temperature became negative

    2. B

      The mean absolute error increased from 2.89 to 2.92

    3. C

      The mean absolute error decreased from 2.92 to 2.89

    4. D

      The model became unable to make predictions

    Correct answer
    C

    The 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.

  13. 13

    What is feature engineering in machine learning?

    1. A

      Removing all features except the target variable

    2. B

      Creating new columns or features from existing data to help the model make better predictions

    3. C

      Automatically generating features using deep learning

    4. D

      Replacing missing values with zeros

    Correct answer
    B

    Creating 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.

  14. 14

    In the weather example, what two engineered features were added to reduce the error?

    1. A

      Average temperature over the past 7 days and the ratio of today's temperature to that average

    2. B

      Minimum temperature and precipitation

    3. C

      Day of the week and month

    4. D

      Difference between today's and yesterday's temperature and humidity

    Correct answer
    A

    Average 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).

  15. 15

    What was the mean absolute error after feature engineering in the linear regression model?

    1. A

      2.89

    2. B

      2.92

    3. C

      2.69

    4. D

      3.05

    Correct answer
    C

    2.69

    Explanation

    After adding engineered features, the MAE improved to 2.69, down from 2.89.

  16. 16

    What is a key advantage of deep learning over traditional machine learning?

    1. A

      Deep learning requires less data to train

    2. B

      Deep learning models are always interpretable

    3. C

      Deep learning automatically creates features from raw data

    4. D

      Deep learning is easier to configure than machine learning

    Correct answer
    C

    Deep learning automatically creates features from raw data

    Explanation

    Deep learning automates feature engineering through hidden layers, while traditional ML often requires manual feature creation.

  17. 17

    In a neural network, what is the role of hidden layers?

    1. A

      They store the training data for later use

    2. B

      They directly output the final prediction

    3. C

      They reduce the number of input features

    4. D

      They generate new features from the input data

    Correct answer
    D

    They generate new features from the input data

    Explanation

    Hidden layers in neural networks generate new features automatically as data flows through them.

  18. 18

    What two types of operations are repeatedly applied in a deep learning network?

    1. A

      Random number generation and sorting

    2. B

      Only non-linear functions

    3. C

      Linear transformations and non-linear activation functions

    4. D

      Only linear transformations

    Correct answer
    C

    Linear transformations and non-linear activation functions

    Explanation

    Neural networks repeatedly apply linear transformations (weights and biases) and non-linear activation functions like ReLU.

  19. 19

    Which algorithm is used to automatically find the correct weights and biases in a neural network?

    1. A

      Gradient descent

    2. B

      K-means clustering

    3. C

      Decision tree learning

    4. D

      Linear regression

    Correct answer
    A

    Gradient descent

    Explanation

    Gradient descent iteratively adjusts weights and biases to minimize the error.

  20. 20

    What happens if the learning rate in gradient descent is set too high?

    1. A

      The network will train very slowly

    2. B

      The network will always converge to the global minimum

    3. C

      The network will stop learning after one epoch

    4. D

      The network may change weights too quickly and miss the correct values

    Correct answer
    D

    The 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.

  21. 21

    In the neural network code example, how many times was each piece of data fed into the network?

    1. A

      Ten times

    2. B

      Until the error reached zero

    3. C

      Five times

    4. D

      Once

    Correct answer
    C

    Five times

    Explanation

    The outer loop ran five times (epochs), feeding each data point five times through the network.

  22. 22

    What was the mean absolute error achieved by the deep learning model in the weather prediction example?

    1. A

      2.88

    2. B

      2.92

    3. C

      2.69

    4. D

      2.89

    Correct answer
    A

    2.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).

  23. 23

    For which type of data is traditional machine learning typically better than deep learning?

    1. A

      Data with fewer than 100 rows

    2. B

      Time series data only

    3. C

      Unstructured data like images and text

    4. D

      Tabular data (like spreadsheets)

    Correct answer
    D

    Tabular 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.

  24. 24

    Why are deep learning models often called 'black box' models?

    1. A

      It is difficult to understand how they arrive at a prediction

    2. B

      Their code is proprietary and hidden

    3. C

      They only work with black-and-white images

    4. D

      They require a black background in the user interface

    Correct answer
    A

    It 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.

  25. 25

    According to the content, what is a recommended approach when deciding between machine learning and deep learning for a specific problem?

    1. A

      Use only expert systems to avoid complexity

    2. B

      Use machine learning if the data is small, otherwise deep learning

    3. C

      Try both methods and compare their error metrics

    4. D

      Always use deep learning because it is more advanced

    Correct answer
    C

    Try 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.

Question 1 of 25
Question 1 of 25

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent