1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning Foundations

Study methods

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

Machine Learning Foundations

  • 105Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: ML Foundations
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is machine learning?

Tap to flipClick to flipspace

A branch of artificial intelligence in which algorithms learn patterns from data and use them to make predictions without being explicitly programmed for every scenario.

Or swipe the card

105 cards

  1. What is machine learning?

    A branch of artificial intelligence in which algorithms learn patterns from data and use them to make predictions without being explicitly programmed for every scenario.

  2. What three elements define whether a program learns from experience?

    Experience (EEE), a class of tasks (TTT), and a performance measure (PPP). A program learns if its performance on tasks in TTT, measured by PPP, improves with experience EEE.

  3. In the robot-driving example, what are the task, performance measure, and experience?

    The task is driving on highways using vision sensors; performance is the average distance traveled before a mistake or lane departure; experience is recorded images and steering commands from observing a human driver.

  4. How does machine learning differ from programming a computer with explicit rules?

    Instead of specifying every rule, the developer supplies data and a learning method so the algorithm can infer rules and patterns from examples.

  5. What is the traditional-programming input-process-output pattern?

    Data plus an explicitly written program are given to the computer, which executes the program to produce an output.

  6. What is the machine-learning input-output pattern described by the cake example?

    The algorithm is given examples of inputs and desired outputs, then infers a program or rules that can produce outputs for new examples.

  7. How can a spam filter learn to identify spam?

    By analyzing a large labeled set of emails and learning complex text patterns, rather than relying only on a human-written list of prohibited words.

  8. How can a recommendation system adapt as a user's tastes change?

    It uses ongoing behavior, such as viewing history, to refine its recommendations and adapt to changes in the user's preferences.

  9. Why can machine learning be useful with very large data sets?

    It can process large volumes of data and find patterns at a scale that may overwhelm traditional software or human analysis.

  10. How can machine learning automate repetitive customer-service tasks?

    Chatbots can handle multi-step inquiries such as order tracking and returns, freeing human agents to focus on more nuanced issues.

  11. What does personalization mean in machine learning applications?

    Algorithms use an individual's behavior to tailor an experience, such as creating a customized music playlist.

  12. Give an example of machine learning addressing a complex problem in medicine.

    It can identify subtle signs of cancer in medical images, sometimes with accuracy that surpasses human specialists.

  13. How are artificial intelligence, machine learning, deep learning, and data science related?

    AI is the broad field of making computers intelligent; ML is an approach within AI that learns from data; deep learning is a specialized form of ML using layered neural networks; data science is the broader practice of extracting knowledge from data.

  14. What capabilities let machine learning work beyond ordinary human analysis?

    Its speed, scale, and pattern recognition allow it to analyze data volumes and numbers of variables that people cannot readily comprehend or process manually.

  15. What are examples of real-world applications of machine learning?

    Applications include medical diagnosis, self-driving cars, antibiotic discovery, fraud detection, product recommendations, and robotics.

  16. What distinguishes supervised learning data from unsupervised learning data?

    Supervised learning uses labeled examples with known answers; unsupervised learning uses unlabeled data without predefined answers.

  17. What kind of data does reinforcement learning use?

    It does not rely on a predefined static data set; an agent interacts directly with an environment and learns from rewards or penalties.

  18. What is the goal of supervised learning?

    To learn a mapping from inputs to outputs using labeled input-output examples, so the model can predict outputs for new inputs.

  19. How does feedback guide a supervised-learning algorithm?

    The algorithm makes predictions, compares them with known correct answers, and adjusts its internal model when its predictions are wrong.

  20. In a supervised clinic example, what are the inputs and labels?

    Inputs can include a patient's age and gender; the label indicates whether the patient is healthy or sick.

  21. How could an unsupervised algorithm use unlabeled clinic data?

    It could group patients based on their features and discover patterns or symptom clusters without being told which patients are healthy or sick.

  22. Why is unsupervised learning useful for exploratory data analysis?

    It can reveal associations, clusters, and structures in data that were not labeled or previously known.

  23. What is the objective of reinforcement learning?

    To have an agent choose actions in an environment so as to maximize rewards.

  24. How does the dog-training analogy illustrate reinforcement learning?

    The learner is not given explicit instructions for every action; it learns which actions are desirable through rewards and penalties.

  25. What is a delayed reward in reinforcement learning?

    A reward that depends not only on an immediate action but also on later situations and subsequent actions.

  26. Why must a reinforcement-learning agent value long-term outcomes in chess?

    A move with no immediate reward may set up a strategy that leads to checkmate many moves later.

  27. What are examples of systems trained through reinforcement learning?

    Systems that learn to play complex games such as AlphaGo and bipedal robots that learn to walk and balance.

  28. Which algorithms are associated with supervised, unsupervised, and reinforcement learning in the material?

    Supervised learning: linear regression and support vector machines; unsupervised learning: principal component analysis; reinforcement learning: Q-learning.

  29. Why is a machine-learning data set represented as a matrix?

    A matrix is a structured mathematical grid that lets a computer process real-world records as organized rows and columns.

  30. What does a row vector represent in a data set?

    One instance or record, such as the complete profile of one patient.

  31. What does a column vector represent in a data set?

    One feature measured across all instances, such as the ages of all patients.

  32. What are the main stages of the data-preprocessing pipeline?

    Data cleaning, data transformation, and data reduction.

  33. What does data cleaning address?

    Missing values, noisy data, and extreme outliers.

  34. What is imputation, and how could it handle a missing patient age?

    Imputation replaces a missing value with an estimated value; for example, a missing age could be filled with the average age of other patients.

  35. What is the purpose of data transformation in preprocessing?

    To normalize or standardize variables so they are placed on comparable scales.

  36. Why can differently scaled features cause problems in a model?

    A feature with much larger raw values may dominate the learning process, even if it is not more important than smaller-scale features.

  37. What does standardization commonly do to a feature?

    It scales the feature to have a mean of zero and a standard deviation of one.

  38. What is the curse of dimensionality?

    As the number of features grows, the mathematical space grows exponentially, making data sparse and training slower and potentially confusing models.

  39. What is dimensionality reduction?

    Transforming high-dimensional data into a lower-dimensional space while preserving its essential information and patterns.

  40. Why is dimensionality reduction more than simply deleting columns?

    Its aim is to reduce the number of features while retaining the important underlying patterns and information.

  41. How do feature selection and feature extraction differ?

    Feature selection keeps a subset of the original features; feature extraction transforms the original data into a new, more compact set of features.

  42. What does forward selection do?

    It starts with no features, repeatedly adds the feature that most improves the model, and stops when adding another feature no longer helps.

  43. What does backward selection do?

    It starts with all features and repeatedly removes the least useful one until removing another feature would harm performance.

  44. What is principal component analysis (PCA)?

    A feature-extraction technique that maps data into fewer dimensions while aiming to preserve as much variance as possible.

  45. How does PCA choose its first principal component?

    It identifies the direction through the data with the greatest spread, or variance.

  46. How are successive principal components oriented?

    Each later component is orthogonal to the previous components and captures the next largest amount of variance.

  47. What are principal components?

    New axes formed by PCA that represent directions of variation in the data.

  48. Why does PCA prioritize directions of high variance?

    Variance represents spread and information; directions with more variation can preserve more useful information about the data.

  49. Why is a feature with no variation often unhelpful for prediction?

    If it has the same value for every instance, it provides no differences that can help distinguish or predict outcomes.

  50. What can PCA accomplish when reducing many dimensions to only a few components?

    It can retain much of the critical information in a smaller representation, such as reducing many dimensions to a handful of principal components.

  51. How can PCA speed up data processing?

    By compressing data into fewer dimensions, it reduces the amount of data that must be processed.

  52. How can PCA reduce noise?

    Random noise often has little structural variance, so it may be discarded when only the highest-variance components are retained.

  53. How can PCA address multicollinearity?

    It transforms correlated original features into orthogonal, uncorrelated components.

  54. How can PCA help visualize high-dimensional data?

    It can reduce the data to two or three principal components so the data can be plotted and clusters inspected visually.

  55. What is one interpretability drawback of PCA?

    Principal components are combinations of original features, so their meaning may be difficult for people to interpret.

  56. Why should data be standardized before applying PCA?

    PCA is sensitive to scale; without standardization, it may be dominated by the feature with the largest raw values.

  57. What assumptions and risks limit PCA?

    PCA assumes linear relationships, and discarding too many components can cause information loss.

  58. What does supervised learning learn from labeled examples?

    A function that maps an input to an output based on labeled input-output pairs.

  59. In supervised learning, what are features and target outputs?

    Features are the input variables used for prediction; the target output, or label, is the known answer the model learns to predict.

  60. What is the six-step supervised-learning workflow?

    Collect labeled data, preprocess it, select a model, train it, evaluate it on unseen data, and use it to make predictions.

  61. Why does supervised learning require labeled data collection?

    The model needs known outputs paired with input features to learn the relationship it will use for prediction.

  62. Why preprocess data before training a supervised model?

    Real-world data can be messy or incomplete, and features on very different scales can interfere with learning.

  63. How do you choose between regression and classification?

    Use regression to predict a continuous amount and classification to assign an instance to a discrete category.

  64. What are examples of regression targets?

    A house price, next month's sales revenue, or a person's blood pressure.

  65. What are examples of classification targets?

    Whether an email is spam, or whether a patient is healthy or sick.

  66. Why evaluate a supervised model on unseen examples?

    To test whether it learned patterns that generalize, rather than simply memorizing the training data.

  67. In house-price prediction, what could be features and the target?

    Features could include square footage, bedroom count, house age, and school district; the target is the actual sale price.

  68. What does linear regression model?

    A linear relationship between a dependent variable being predicted and one or more independent features.

  69. What does a line of best fit represent in linear regression?

    A linear equation fitted to observed data to capture the overall relationship or trend.

  70. What is the difference between simple and multiple linear regression?

    Simple linear regression uses one feature; multiple linear regression uses more than one feature.

  71. Despite its name, what task is logistic regression used for?

    Classification. It predicts the probability that an instance belongs to a category rather than predicting a continuous amount.

  72. What is binary classification?

    Classification into one of two categories, such as success or failure.

  73. What is multinomial classification?

    Classification into three or more unordered categories, such as cat, dog, or bird.

  74. What is ordinal classification?

    Classification into categories with a meaningful order, such as poor, good, or excellent.

  75. What is a decision tree?

    A hierarchical, flowchart-like model that makes decisions by applying a sequence of attribute tests.

  76. What are the root node, internal nodes, and leaf nodes in a decision tree?

    The root begins the decision process; internal nodes apply further tests; a leaf gives the final decision or prediction.

  77. Which task types can decision trees handle?

    Both classification and regression.

  78. What is the main objective of a support vector machine (SVM) in binary classification?

    To find a decision boundary that separates two groups while maximizing the distance between the boundary and the closest data points.

  79. What is a hyperplane in an SVM?

    The decision boundary separating classes; it is a line in two dimensions and a plane in three dimensions.

  80. What are support vectors?

    The data points closest to an SVM's decision boundary.

  81. What is the margin in an SVM?

    The distance between the decision boundary and the closest data points, the support vectors.

  82. Why does an SVM maximize its margin?

    A wider margin helps reduce overfitting and supports more reliable predictions on unseen data.

  83. How do hard-margin and soft-margin SVMs differ?

    A hard margin requires strict separation; a soft margin allows some outliers or errors to cross the boundary for a more robust fit.

  84. What is the purpose of k-means clustering?

    To organize unlabeled data into a chosen number of clusters based on similarities, such as distances between data points.

  85. In k-means, what does KKK specify?

    The number of clusters the algorithm is asked to find.

  86. What is a centroid in k-means?

    A point representing the center of a cluster.

  87. What are the main steps of the k-means algorithm?

    Choose KKK; initialize KKK centroids; assign each point to its nearest centroid; recompute each cluster's center; repeat assignments and updates until the clusters stop changing.

  88. How does k-means assign data points to clusters?

    Each point is assigned to the cluster whose centroid is closest to it.

  89. When does k-means stop iterating?

    When the centroids stop moving and no data points change cluster assignments.

  90. What is an ensemble method?

    A method that combines predictions from multiple models to improve predictive accuracy and robustness compared with relying on one model.

  91. Why can combining several weak learners be helpful?

    Aggregating their outputs can reduce errors and variance, producing a more robust predictor than an individual weak model.

  92. How does boosting differ from building ensemble models independently?

    Boosting builds models sequentially, with each new model focusing on errors made by the preceding model.

  93. How does boosting use the errors of its first model?

    It identifies incorrectly predicted data points and gives them extra attention or weight when building the next model.

  94. How does the boosting sequence continue?

    Each new model focuses on mistakes made by the previous model, continuing until the training data is predicted correctly or a set maximum number of models is reached.

  95. What overfitting risk can arise when boosting focuses too intensely on training errors?

    The ensemble may memorize the training data and fail to generalize well to new environments or unseen data.

  96. What does accuracy measure in model evaluation?

    The total percentage of predictions that are correct.

  97. What does a confusion matrix track?

    Counts of prediction outcomes, including false positives and false negatives.

  98. Which measures can be derived from a confusion matrix?

    Precision, recall, and the F1 score.

  99. What is the F1 score described as in the material?

    The harmonic mean combining precision and recall.

  100. What do ROC and AUC stand for?

    ROC is the receiver operating characteristic curve; AUC is the area under the curve.

  101. What does mean absolute deviation (MAD) measure?

    The average absolute distance of observations from the data set's mean; it is a measure of spread.

  102. What is the formula for mean absolute deviation?

    MAD=1Nāˆ‘i=1N∣xiāˆ’Ī¼āˆ£\mathrm{MAD}=\frac{1}{N}\sum_{i=1}^{N}|x_i-\mu|MAD=N1ā€‹āˆ‘i=1Nā€‹āˆ£xiā€‹āˆ’Ī¼āˆ£

  103. In the MAD formula, what do xix_ixi​, μ\muμ, and NNN represent?

    xix_ixi​ is an individual observation, μ\muμ is the mean, and NNN is the total number of observations.

  104. Why does the MAD formula use absolute values?

    Absolute values make each deviation a nonnegative distance, so deviations above and below the mean do not cancel each other out.

  105. How should high and low MAD values be interpreted?

    A high MAD indicates values are widely spread around the mean; a low MAD indicates they are more tightly clustered and consistent.

Card 1 of 105
Card 1 of 105

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent