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

Study methods

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

Machine Learning Fundamentals

  • 67Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Machine Learning Basics
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is machine learning?

Tap to flipClick to flipspace

A subset of artificial intelligence that enables computer systems to perform tasks without being explicitly programmed with rules for every situation.

Or swipe the card

67 cards

  1. What is machine learning?

    A subset of artificial intelligence that enables computer systems to perform tasks without being explicitly programmed with rules for every situation.

  2. How does machine learning differ from traditional rule-based programming?

    Traditional programming uses explicit, hard-coded rules, whereas machine learning learns patterns from training data to make predictions.

  3. What role does training data play in machine learning?

    Training data is used to teach a machine-learning algorithm patterns that it can later use to make predictions on previously unseen data.

  4. What is the goal of training a supervised learning algorithm?

    To learn from labeled examples so the algorithm can predict the correct labels for new data.

  5. What is a binary classifier?

    A model that assigns inputs to one of two classes.

  6. In a spam filter, what are the input and output?

    The input is the email message, possibly in tokenized form, and the output is a prediction of spam or not spam.

  7. How can deep learning be applied to spam detection?

    A deep-learning model can learn from email data to classify messages as spam or not spam.

  8. What is supervised learning?

    Learning from a training set that contains labels.

  9. What is unsupervised learning?

    Learning from a training set that does not contain labels.

  10. What is offline or batch learning?

    Training a model offline on a collected batch of data and then deploying the trained model.

  11. What is online learning?

    Continuously or frequently retraining a model as new data instances arrive, often after the model is placed in production.

  12. What is predictive learning?

    Learning in which a model predicts a numerical value, such as in regression.

  13. What is an instance-based model?

    A model that classifies new data points by assigning them to existing instances or categories.

  14. How can machine-learning approaches be combined?

    A system can combine different properties, such as being supervised, instance-based, and trained online.

  15. What are major weaknesses of hard-coded rule systems?

    They can require complex rule sets, become inflexible or obsolete, be difficult and expensive to maintain, fail on new cases, and create false positives.

  16. Why can hard-coded spam rules become obsolete?

    Spammers can change the wording and structure of their messages, causing previously effective rules to stop detecting them.

  17. Why are hard-coded rules difficult to maintain?

    Large systems may contain thousands of lines of complex code, making it difficult and expensive to identify and modify faulty rules.

  18. Why may hard-coded rules fail on future data?

    They may not adapt to new types of inputs, such as emails containing different paragraphs, images, or other structures.

  19. What is a false positive in spam detection?

    Classifying a legitimate email as spam.

  20. Why is speech recognition difficult to solve with hard-coded rules?

    It is difficult to write fixed rules that convert the frequencies heard in speech into accurate classifications.

  21. What is one advantage of machine-learning code compared with large rule systems?

    Machine-learning solutions can often be implemented with relatively few lines of code using tools such as Keras, TensorFlow, or scikit-learn.

  22. Why can machine-learning systems be easier to maintain than rule-based systems?

    Their performance can be evaluated, and the data or algorithm can be improved or retrained when problems are identified.

  23. What is data drift?

    A change in the distribution of model features that causes the model's performance to deteriorate.

  24. Why might a model need retraining after data drift?

    New feature distributions may no longer match the data on which the model was trained, reducing its predictive performance.

  25. What is concept drift?

    A change in the relationship between the target and the features such that the previous relationship is no longer predictive.

  26. How does concept drift differ from data drift?

    Data drift changes feature distributions, whereas concept drift changes the predictive relationship between features and the target.

  27. What is an example of concept drift in car-accident prediction?

    If autonomous vehicles make accidents independent of driver age, driver age would no longer be a relevant predictive feature.

  28. What is an example of data drift involving driver age?

    If the system begins receiving many more older drivers than before, the feature distribution changes and the model may perform poorly on that population.

  29. Why can online learning make a model vulnerable to degradation?

    If newly arriving data is poor or problematic, continuously training on it can progressively make the model worse.

  30. How can a fail switch protect an online-learning system?

    It can prevent replacing the production model when the newly trained model performs worse than the current model on a fixed evaluation set.

  31. What is the risk illustrated by a model trained continuously on poor Twitter data?

    The model may gradually learn harmful or nonsensical patterns and produce increasingly inappropriate outputs.

  32. What is the first stage of a machine-learning project?

    Understand and define the business problem with stakeholders.

  33. What should a data scientist do when defining a business problem?

    Ask questions, understand the full scope, consult stakeholders, and create a plan for solving the problem.

  34. Why are stakeholders important during machine-learning projects?

    They provide business context, domain expertise, guidance, and feedback about whether the analysis addresses the real problem.

  35. What is exploratory data analysis (EDA)?

    The initial investigation of collected data to understand its patterns, quality, relationships, and usefulness for the problem.

  36. Why should stakeholders be consulted after initial EDA?

    Their feedback helps determine whether the findings make sense, align with their experience, and address the correct problem.

  37. What hypotheses can be formed during EDA?

    Hypotheses about whether individual features predict the target and how features correlate with one another.

  38. Why should analysts understand the business meaning of features before modeling?

    They need to understand what the features represent, how they affect the target, and how they relate to the business problem.

  39. What does ETL stand for?

    Extract, Transform, and Load.

  40. What is the purpose of an ETL architecture?

    To organize the extraction, cleaning, merging, and preparation of raw data for modeling.

  41. Why should data collection and understanding be prioritized over building a complex model?

    Poor-quality or insufficient data can produce a poor model, while good data can substantially improve performance even with a simpler model.

  42. How can increasing the amount of training data improve an NLP model?

    More data can improve performance by helping the model learn across more examples, segments, and abstractions.

  43. What issues should be checked during data preparation and cleaning?

    Missing values, invalid values, inconsistent data, and other problems identified during EDA.

  44. What are imputation and value capping used for?

    Imputation addresses missing values, while minimum or maximum capping limits invalid or extreme values.

  45. What is feature engineering?

    Creating or modifying features to provide potentially useful representations for a model.

  46. Why should data transformations be placed in a pipeline?

    A pipeline ensures that the same transformation process is applied consistently when new data arrives or a model is retrained.

  47. What is Luigi used for in a machine-learning workflow?

    It is a pipelining framework that supports data and modeling processes through dependencies.

  48. What are common activities during the modeling stage?

    Training models, splitting data into training and testing sets, using cross-validation, and comparing different modeling approaches.

  49. Why should multiple modeling approaches be explored?

    Different models are suited to different problem structures, so comparing them can help identify the best approach for the available time and application.

  50. Which type of model may suit geographical or spatial problems, and why?

    K-nearest neighbors may be suitable because it is region-based and incorporates spatial smoothing and geographical constraints.

  51. Which models were given as examples for graph-structured problems?

    Decision trees and neural networks.

  52. Which models were given as examples for time-series data?

    Recurrent neural networks and moving-average models.

  53. Why should stakeholders understand the model's evaluation metric?

    They need to know what the model is optimizing and how success is being measured.

  54. Which metrics were mentioned for classification models?

    Precision and recall.

  55. Which other evaluation measures were mentioned?

    RMSE and the Gini index.

  56. What is overfitting?

    A condition in which training accuracy is very high but testing accuracy is very low because the model has learned noise from the training data.

  57. What does high variance indicate in a model?

    The model is highly sensitive to differences between datasets, often because it has overfit the training data.

  58. What is high bias?

    A condition in which the model imposes too much preconceived structure or opinion and fails to capture clear patterns in the data.

  59. Why is too little bias also undesirable?

    A model with too little bias may assume it has no useful prior information about the relationship and depend entirely on the data.

  60. What is the bias-variance trade-off?

    The need to balance model bias and variance because making one lower can often cause the other to increase.

  61. How does increasing model complexity affect training and testing performance near overfitting?

    Training accuracy tends to increase while testing accuracy decreases; training error decreases while testing error increases.

  62. What is underfitting?

    A condition in which the model is too simple to capture important relationships in the data.

  63. What is the purpose of deploying a machine-learning model?

    To place the model into a production environment where it can support the intended business process or application.

  64. Why should data scientists work with engineers during deployment?

    Engineers can help determine the appropriate production environment and how the model should fit into the larger system.

  65. What deployment environments were mentioned?

    An AWS EC2 instance or a local environment.

  66. What should be communicated to stakeholders when delivering a model?

    The model's findings, construction, evaluation metric, and what is being optimized.

  67. What is the overall sequence of a machine-learning project?

    Define the business problem, perform EDA, prepare and clean the data, build a data pipeline, model the data, evaluate the model, and deploy it.

Card 1 of 67
Card 1 of 67

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent