1. Home
  2. Explore
  3. Computer Science
  4. Data-Driven Business with ML

Study methods

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

Data-Driven Business with ML

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

What is the definition of an algorithm?

Tap to flipClick to flipspace

A set of rules or processes to be followed in calculations or problem-solving operations, especially by a computer.

Or swipe the card

29 cards

  1. What is the definition of an algorithm?

    A set of rules or processes to be followed in calculations or problem-solving operations, especially by a computer.

  2. Give an example of an everyday algorithm used by humans.

    Driving a car, walking, or singing – the body executes trained steps automatically.

  3. Who famously used algorithms to decode encrypted messages during World War II?

    Alan Turing.

  4. What is a pseudocode?

    A high-level, literal description of an algorithm that resembles a programming language but is readable by non-programmers.

  5. What is a flowchart?

    A graphical representation of an algorithm using symbols like diamonds (decisions) and rectangles (processes).

  6. What is the purpose of a diamond shape in a flowchart?

    It represents a decision point with two tracks (e.g., yes/no or true/false).

  7. What is machine learning?

    The ability for a machine to learn without being explicitly programmed for that task, using data and algorithms to train itself and make predictions.

  8. What are the three main types of machine learning?

    Supervised learning, unsupervised learning, and reinforcement learning.

  9. In supervised learning, what are the input and output variables typically called?

    Input variables are denoted by XXX, output variables by YYY.

  10. What is the goal of a supervised learning system?

    To understand how the output variable YYY changes with respect to the input variable XXX, and to predict YYY for new XXX values.

  11. What are dependent and independent variables in supervised learning?

    The dependent variable is the output (YYY), and the independent variable is the input (XXX). The aim is to understand how YYY changes with XXX.

  12. What are the two main types of supervised learning?

    Classification and regression.

  13. What is regression in supervised learning?

    A type of supervised learning where the output variable is a continuous numeric value (e.g., predicting the price of an apple based on features).

  14. What is logistic regression?

    A regression technique where the dependent variable is categorical (binary), typically producing a probability of belonging to a class (e.g., rain or no rain).

  15. What does the graph of logistic regression look like?

    An S-shaped curve (sigmoid function), unlike the straight line of linear regression.

  16. What is classification in supervised learning?

    A type of supervised learning where the output variable is categorical (binary or multi-class), such as classifying a person as male or female.

  17. What is unsupervised learning?

    A type of machine learning where the input data has no labels; the algorithm must find patterns or groupings on its own.

  18. What is clustering in unsupervised learning?

    The process of grouping similar data points together into clusters, such that intra-cluster similarity is high and inter-cluster similarity is low.

  19. What is k-means clustering?

    An unsupervised algorithm that partitions data into kkk clusters by minimizing the distance between points and their cluster centroid.

  20. What does the 'k' in k-means clustering stand for?

    The number of clusters desired in the output.

  21. What is reinforcement learning?

    A type of machine learning where an agent learns by interacting with an environment, receiving rewards or penalties for actions, to maximize cumulative reward.

  22. Give an example of reinforcement learning from the transcript.

    Teaching a dog to give a handshake: when the dog does it correctly, it gets a biscuit (reward).

  23. In reinforcement learning, what is an agent?

    The entity that performs actions in an environment to achieve a goal.

  24. What is the elbow method in k-means clustering?

    A technique to determine the optimal number of clusters by plotting the within-cluster sum of squares (WCSS) and looking for an 'elbow' point where the rate of decrease slows.

  25. In the k-means demo, what library was used to generate sample data?

    make_blobs from sklearn.datasets.

  26. What dataset was used in the logistic regression demo?

    The Framingham heart disease dataset from Framingham, Massachusetts.

  27. What was the target (dependent variable) in the logistic regression demo?

    Ten-year CHD (coronary heart disease) risk, a binary variable indicating whether the person had heart disease.

  28. What was the accuracy of the logistic regression model in the demo?

    Approximately 88% (88.14%).

  29. What is the purpose of removing missing values in the logistic regression demo?

    To clean the data; missing values can distort the model. The demo removed about 12% of rows with missing values.

Card 1 of 29
Card 1 of 29

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent