Lecture 1

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/66

flashcard set

Earn XP

Description and Tags

ML

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

67 Terms

1
New cards

What is the fundamental concept of machine learning?

Teaching computers to perform tasks using data rather than explicit programming

2
New cards

In machine learning, a model is defined with parameters that are optimized using what?

Training data or past experience

3
New cards

What are the two general purposes a machine learning model can serve?

It can be predictive (making future predictions) or descriptive (gaining knowledge from data)

4
New cards

According to the source, what is the primary role of machine learning in the modern data landscape?

To enable computers to learn from data to aid knowledge discovery, transforming raw data into insights through pattern recognition.

5
New cards

What are the three main branches of machine learning identified in the lecture?

Supervised learning, Unsupervised learning, and Reinforcement learning.

6
New cards

What is the core principle of supervised learning?

It involves learning from labeled data to predict outputs for new inputs.

7
New cards

In supervised learning, given a dataset D = {Xi, Yi}, what is the goal?

To learn a function F that maps inputs to outputs, represented as F: X → Y

8
New cards

What is the primary use case for supervised learning in industry?

To automate manual labor by learning a model from a manually annotated subset of data to annotate the rest.

9
New cards

Supervised learning is divided into two main types

Classification and Regression

10
New cards

What type of output does a classification model predict?

Discrete outputs or categories.

11
New cards

What is a key requirement for training a supervised classification model?

Historical data with both features and corresponding labels.

12
New cards

What is an example of a classification task in the financial industry?

Credit scoring, which determines if customers are low-risk based on attributes like income and savings.

13
New cards

In the context of supervised learning, what task involves identifying diseases from patient information?

Medical diagnosis (a classification task).

14
New cards

What is an example of a classification task involving images of text?

Optical character recognition (recognizing handwritten digits or characters).

15
New cards

What type of output does a regression model predict?

Continuous outputs or numerical values.

16
New cards

What is an example of a regression task related to vehicles?

Predicting car prices based on mileage and other features.

17
New cards

In navigation systems, predicting the steering angle is an example of what type of supervised learning?

Regression.

18
New cards

What is the primary goal of unsupervised learning?

To discover patterns, structures, or groupings in unlabeled data.

19
New cards

The process of grouping similar items together without predefined labels, such as in customer segmentation, is known as _.

Clustering

20
New cards

What is a common application of unsupervised learning in cybersecurity and finance?

Outlier detection, used to identify fraud or security threats.

21
New cards

How can unsupervised learning be used for data storage efficiency?

Through image compression, by grouping similar colors to reduce storage requirements.

22
New cards

What is the objective of reinforcement learning?

To learn optimal action sequences in an environment to maximize cumulative rewards.

23
New cards

What are the three core components in a reinforcement learning problem?

Environment (e), actions (a), and rewards (r).

24
New cards

Reinforcement learning is particularly suited for scenarios requiring _ under uncertainty.

sequential decision-making

25
New cards

What is the first stage of the typical machine learning workflow?

Data ingestion: collecting raw data from various sources.

26
New cards

What is the second stage of the machine learning workflow, occurring after data ingestion?

Data cleansing / transformation: preprocessing and cleaning data.

27
New cards

After data is cleaned and transformed, what is the next step in the ML workflow?

Model training: building the model on the training data.

28
New cards

How is a model's performance evaluated in the machine learning workflow?

During the model testing stage, using the test data.

29
New cards

What is the final stage of the initial ML workflow before continuous improvement begins?

Model deployment: implementing the model in production.

30
New cards

What mechanism ensures continuous improvement in a deployed machine learning model?

A feedback loop based on the model's ongoing performance.

31
New cards

How are images typically represented for processing by a computer in machine learning?

As arrays of RGB values for each pixel.

32
New cards

How must text data be prepared before it can be used in a machine learning model?

It must be converted into a numerical format through tokenization and encoding.

33
New cards

What is the purpose of the Standard scaler (Z-scores) in data preprocessing?

To transform data to have a mean of 0 and a standard deviation of 1.

34
New cards

What is the formula for the Standard scaler transformation?

It is calculated as (X - μ) / σ, where μ is the mean and σ is the standard deviation.

35
New cards

Under what condition does the Standard scaler perform best?

It works well for data that is not skewed (i.e., closely Gaussian distributed).

36
New cards

What makes the Robust scaler more effective than the Standard scaler for skewed data with outliers?

It uses the median instead of the mean and the interquartile range instead of the standard deviation.

37
New cards

Which scaling technique shifts data to a specific interval, typically between 0 and 1?

Min-max scaler.

38
New cards

What is the formula for the Min-max scaler?

It is calculated as (X - X{min}) / (X{max} - X_{min}).

39
New cards

How does the Normalizer scaler differ from other scalers like Standard or Min-max?

It works row-wise rather than column-wise, rescaling each row's norm to 1.

40
New cards

When is the Normalizer scaler particularly useful?

When the direction of the data matters more than the magnitude, such as with histograms.

41
New cards

What is the goal of using univariate mathematical transformations like log or Box-Cox?

To adjust feature scales and make their distributions more closely Gaussian (bell-shaped).

42
New cards

For what type of data is a logarithmic transformation particularly useful?

Counting data that has many small values and a few large outliers.

43
New cards

If data contains zeros, how should a log transformation be applied to avoid errors?

By using the formula log(X + 1), since the logarithm is undefined at zero.

44
New cards

What do the Box-Cox and Yeo-Johnson transformations do automatically?

They estimate parameters to minimize skewness and stabilize variance, converting distributions to be near-Gaussian.

45
New cards

What is the process of separating continuous feature values into a number of categories called?

Binning or discretization.

46
New cards

How does binning affect linear models?

It increases their flexibility by allowing the model to learn different predictions for each bin.

47
New cards

Why does binning typically have no beneficial effect for tree-based models?

Because tree-based models can already learn to split the data anywhere along a feature's range.

48
New cards

What is the primary reason for adding interaction and polynomial features to a dataset?

To enrich the feature representation, especially for linear models.

49
New cards

Why is it crucial to split a dataset into training and testing sets?

To avoid overfitting and to properly evaluate how well the model generalizes to new, unseen data.

50
New cards

A model that is too simple and fails to capture the underlying patterns in the data is said to be _.

Underfitting

51
New cards

What is overfitting?

When a model is too complex and memorizes the training data, leading to poor generalization on new data.

52
New cards

What is the 'sweet spot' in model training?

The optimal model complexity that balances high training accuracy with good generalization performance.

53
New cards

For datasets with multiple samples per subject, what splitting method should be used to prevent data leakage?

Subject-wise splitting, ensuring all data from one subject is in either the training or test set, but not both.

54
New cards

What is the purpose of cross-validation?

To evaluate a model's ability to predict new data and to detect issues like overfitting or selection bias.

55
New cards

In ___ , the dataset is divided into subsets, and each subset is used as the test set once.

K-fold cross-validation

56
New cards

What is Leave-one-out cross-validation?

An extreme form of K-fold cross-validation where K is equal to the total number of samples in the dataset.

57
New cards

What is the purpose of using DummyClassifier and DummyRegression models?

They serve as simple baselines to compare against more complex models, using strategies like predicting the most frequent class or the mean.

58
New cards

What is a machine learning pipeline?

An integrated workflow that executes a sequence of tasks, such as scaling, training, and prediction.

59
New cards

What is a key benefit of using a machine learning pipeline for preprocessing?

It ensures consistent transformations are applied to both training and testing data, preventing data leakage.

60
New cards

In ML terminology, what is an 'instance'?

A single data point or example in a dataset.

61
New cards

What are 'features' or 'attributes' in machine learning?

The descriptive characteristics or properties of an instance.

62
New cards

The target variable or output that a model tries to predict is known as the _.

Label or class

63
New cards

What is a 'feature vector'?

A collection of all the feature values for a single instance.

64
New cards

Term: Model

An equation or system that links feature values to predicted target values.

65
New cards

What are 'score functions' or 'fit statistics' used for?

To measure how well a model fits the data.

66
New cards

What is the goal of feature selection?

To reduce the number of predictors by selecting only the most important ones, which is a form of dimensionality reduction.

67
New cards

What is feature extraction?

Transforming data into a new, often lower-dimensional feature space through mathematical operations like PCA.