1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning for Beginners

Study methods

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

Machine Learning for Beginners

  • 65Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Machine Learning Fundamentals
Machine learning is a subdomain of computer science that focuses on algorithms that help a computer learn from data without
programming.

65 questions

  1. 1
    Machine learning is a subdomain of computer science that focuses on algorithms that help a computer learn from data without
    _____
    programming.
    Hint

    Think about the opposite of programming every rule step by step.

    Answer

    explicit

  2. 2
    AI is a broad field aiming to enable computers to perform human-like tasks, while machine learning is a
    _____
    of AI that makes predictions using data.
    Hint

    Consider the hierarchy: AI contains ML as a smaller part.

    Answer

    subset

  3. 3
    Data science is a field that attempts to find patterns and draw
    _____
    from data, sometimes using machine learning.
    Hint

    What do you get after analyzing data?

    Answer

    insights

  4. 4
    In supervised learning, we use
    _____
    inputs (with corresponding output labels) to train models.
    Hint

    The data has known answers attached.

    Answer

    labeled

  5. 5
    Unsupervised learning uses
    _____
    data to learn about patterns in the data without predefined labels.
    Hint

    The data has no answers provided.

    Answer

    unlabeled

  6. 6
    In reinforcement learning, an agent learns in an interactive environment based on
    _____
    and penalties.
    Hint

    Think about training a dog with treats.

    Answer

    rewards

  7. 7
    In supervised learning, the output of a model is called the
    _____
    .
    Hint

    What the model spits out after seeing input.

    Answer

    prediction

  8. 8
    The inputs to a machine learning model are collectively called the
    _____
    vector.
    Hint

    Each input variable is a feature, and together they form this vector.

    Answer

    feature

  9. 9
    Qualitative features that have no inherent order, like gender or nationality, are called
    _____
    data.
    Hint

    Think 'name' – categories with no ranking.

    Answer

    nominal

  10. 10
    Qualitative features with an inherent order, such as age groups or ratings, are called
    _____
    data.
    Hint

    Think 'order' – categories can be ranked.

    Answer

    ordinal

  11. 11
    The technique of converting nominal categories into binary vectors is called
    _____
    encoding.
    Hint

    Each category becomes its own binary column with a single 'hot' (1) entry.

    Answer

    one-hot

  12. 12
    Predicting discrete classes, such as cat vs dog, is a
    _____
    task.
    Hint

    Sorting into categories.

    Answer

    classification

  13. 13
    Predicting continuous numerical values, such as house prices, is a
    _____
    task.
    Hint

    Predicting a number on a scale.

    Answer

    regression

  14. 14
    The data used to train a model is called the
    _____
    set.
    Hint

    The set the model learns from.

    Answer

    training

  15. 15
    A
    _____
    set is used as a final check to see how generalizable the chosen model is on unseen data.
    Hint

    Held out until the end.

    Answer

    test

  16. 16
    The difference between a prediction and the true label is called the
    _____
    .
    Hint

    A measure of error.

    Answer

    loss

  17. 17
    L1 loss takes the
    _____
    value of the difference between true and predicted values.
    Hint

    It's the magnitude without sign.

    Answer

    absolute

  18. 18
    L2 loss
    _____
    the difference between true and predicted values, penalizing larger errors more.
    Hint

    It's quadratic.

    Answer

    squares

  19. 19
    Binary cross-entropy loss is used for
    _____
    classification tasks.
    Hint

    Only two classes.

    Answer

    binary

  20. 20
    The proportion of correct predictions out of total predictions is called
    _____
    .
    Hint

    How often the model is correct.

    Answer

    accuracy

  21. 21
    Precision measures out of all samples predicted as positive, how many are actually
    _____
    .
    Hint

    How many of the positive predictions were correct.

    Answer

    positive

  22. 22
    Recall measures out of all actual positive samples, how many were correctly
    _____
    .
    Hint

    How many of the true positives did we catch.

    Answer

    predicted

  23. 23
    The F1 score is the harmonic mean of
    _____
    and recall.
    Hint

    It combines two metrics.

    Answer

    precision

  24. 24
    In K Nearest Neighbors, the parameter K determines the number of
    _____
    used to classify a new point.
    Hint

    Points nearby.

    Answer

    neighbors

  25. 25
    The most common distance function used in KNN is
    _____
    distance.
    Hint

    Straight-line distance.

    Answer

    Euclidean

  26. 26
    In Naive Bayes, the assumption that all features are independent given the class is called the
    _____
    assumption.
    Hint

    Simplifies the calculation.

    Answer

    naive

  27. 27
    Bayes rule states P(A∣B)=P(B∣A)P(A)P(B)P(A|B) = \frac{P(B|A) P(A)}{P(B)}P(A∣B)=P(B)P(B∣A)P(A)​, where P(A)P(A)P(A) is called the
    _____
    probability.
    Hint

    Before seeing evidence.

    Answer

    prior

  28. 28
    In Naive Bayes, the term P(B∣A)P(B|A)P(B∣A) is called the
    _____
    .
    Hint

    How likely the evidence is given the class.

    Answer

    likelihood

  29. 29
    The denominator in Bayes rule, P(B)P(B)P(B), is called the
    _____
    .
    Hint

    The probability of the observed data.

    Answer

    evidence

  30. 30
    Logistic regression uses the
    _____
    function to map linear combinations to probabilities between 0 and 1.
    Hint

    S-shaped curve.

    Answer

    sigmoid

  31. 31
    In logistic regression, the log-odds is modeled as a linear function: $\log\left(\frac{p}{1-p}\right) = \
    _____
    $.
    Hint

    A linear equation with slope and intercept.

    Answer

    mx+bmx + bmx+b

  32. 32
    Support Vector Machines find the
    _____
    that best separates classes with maximum margin.
    Hint

    A decision boundary in high dimensions.

    Answer

    hyperplane

  33. 33
    The data points that define the margin in SVM are called
    _____
    vectors.
    Hint

    They 'support' the decision boundary.

    Answer

    support

  34. 34
    The technique of mapping data into higher dimensions to make it linearly separable in SVM is called the
    _____
    trick.
    Hint

    A function that computes dot products in a transformed space.

    Answer

    kernel

  35. 35
    In a neural network, each node is called a
    _____
    .
    Hint

    Inspired by biological brains.

    Answer

    neuron

  36. 36
    A function applied to the weighted sum of inputs in a neuron to introduce non-linearity is called an
    _____
    function.
    Hint

    It activates or not based on input.

    Answer

    activation

  37. 37
    The process of updating weights by propagating the error backward through the network is called
    _____
    .
    Hint

    Error goes backwards from output to input.

    Answer

    backpropagation

  38. 38
    Gradient descent uses the
    _____
    of the loss with respect to weights to update them in the direction of decreasing loss.
    Hint

    The slope of the loss function.

    Answer

    gradient

  39. 39
    The hyperparameter that controls the step size in gradient descent is called the
    _____
    rate.
    Hint

    How much you adjust per step.

    Answer

    learning

  40. 40
    One complete pass through the entire training dataset during neural network training is called an
    _____
    .
    Hint

    A full cycle.

    Answer

    epoch

  41. 41
    The number of samples processed before the model's internal parameters are updated is called the
    _____
    size.
    Hint

    A mini group.

    Answer

    batch

  42. 42
    A technique that randomly drops neurons during training to prevent overfitting is called
    _____
    .
    Hint

    Neurons are temporarily deactivated.

    Answer

    dropout

  43. 43
    In linear regression, the difference between the actual value and the predicted value is called a
    _____
    .
    Hint

    Leftover error.

    Answer

    residual

  44. 44
    Simple linear regression models the relationship between one independent variable and the dependent variable as a
    _____
    line.
    Hint

    Linear equation.

    Answer

    straight

  45. 45
    One assumption of linear regression is that the relationship between features and target is
    _____
    .
    Hint

    A straight-line pattern.

    Answer

    linear

  46. 46
    Another assumption of linear regression is that residuals are
    _____
    distributed.
    Hint

    Bell-shaped curve.

    Answer

    normally

  47. 47
    Homoscedasticity means the variance of
    _____
    is constant across all levels of the independent variables.
    Hint

    Spread of errors.

    Answer

    residuals

  48. 48
    Mean Absolute Error (MAE) averages the
    _____
    differences between predicted and actual values.
    Hint

    Magnitude without sign.

    Answer

    absolute

  49. 49
    Mean Squared Error (MSE) averages the
    _____
    differences between predicted and actual values.
    Hint

    Square the error.

    Answer

    squared

  50. 50
    Root Mean Squared Error (RMSE) is the square root of
    _____
    .
    Hint

    It brings the unit back to the original scale.

    Answer

    MSE

  51. 51
    R-squared measures the proportion of variance in the target that is
    _____
    by the model.
    Hint

    How much the model captures.

    Answer

    explained

  52. 52
    In K-means clustering, the initial points chosen as cluster centers are called
    _____
    .
    Hint

    Centers of clusters.

    Answer

    centroids

  53. 53
    The step in K-means where each point is assigned to the nearest centroid is called the
    _____
    step.
    Hint

    Predicting cluster membership.

    Answer

    expectation

  54. 54
    The step in K-means where centroids are recalculated as the mean of assigned points is called the
    _____
    step.
    Hint

    Updating parameters.

    Answer

    maximization

  55. 55
    Principal Component Analysis (PCA) is a
    _____
    reduction technique.
    Hint

    Reducing number of features.

    Answer

    dimensionality

  56. 56
    PCA finds directions of maximum
    _____
    in the data.
    Hint

    Spread of points.

    Answer

    variance

  57. 57
    The first principal component is the direction that maximizes the variance of the projected data, and subsequent components are orthogonal and capture the remaining
    _____
    .
    Hint

    What's left after previous components.

    Answer

    variance

  58. 58
    In PCA, we can either maximize the variance or minimize the
    _____
    residuals when projecting points onto the component.
    Hint

    Perpendicular distance from point to line.

    Answer

    projection

  59. 59
    The MAGIC gamma telescope dataset is used for
    _____
    classification between gamma particles and hadrons.
    Hint

    Two classes.

    Answer

    binary

  60. 60
    In the MAGIC dataset, after one-hot encoding, gamma (G) was mapped to 1 and hadron (H) was mapped to
    _____
    .
    Hint

    The numerical value for 'false' in the conversion.

    Answer

    0

  61. 61
    To handle class imbalance in the MAGIC dataset,
    _____
    was used to increase the number of hadron samples.
    Hint

    Adding more of the minority class.

    Answer

    oversampling

  62. 62
    In the linear regression example with temperature predicting bike count, the coefficient of determination R-squared was around
    _____
    .
    Hint

    A value between 0 and 1.

    Answer

    0.38

  63. 63
    The seeds dataset contains geometric parameters of wheat kernels from
    _____
    different varieties.
    Hint

    K-means uses this many clusters.

    Answer

    three

  64. 64
    In the seeds dataset clustering example, K-means with K=
    _____
    was used because there are three varieties.
    Hint

    Number of clusters equals number of wheat types.

    Answer

    3

  65. 65
    After PCA, the transformed seeds dataset had
    _____
    dimensions, reduced from seven.
    Hint

    Number of principal components chosen.

    Answer

    2

1 of 65
Question 1 of 65

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent