MACHINE LEARNING

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/133

encourage image

There's no tags or description

Looks like no tags are added yet.

134 Terms

1
New cards

Machine Learning

Teaching computers to learn patterns from data and make predictions.

2
New cards

Difference of ML from traditional programming

Traditional code follows written rules; ML learns patterns from examples.

3
New cards

Dataset

A collection of data used to train or evaluate a model.

4
New cards

Sample

One individual example or row in a dataset.

5
New cards

Feature

An input variable used for prediction. Example: house size.

6
New cards

Label or target

The correct output the model should predict. Example: house price.

7
New cards

data preprocessing

Cleaning and preparing data before training a model.

8
New cards

feature engineering

Creating or transforming features to help a model learn.

9
New cards

ML model

A mathematical system that learns patterns and makes predictions.

10
New cards

model parameters

Internal values that a model learns during training.

11
New cards

weight

A learned value controlling how strongly an input affects a prediction.

12
New cards

bias in a model equation

A learned constant that shifts the prediction up or down.

13
New cards

basic linear prediction formula

ŷ = wx + b, where w is the weight and b is the bias.

14
New cards

training

The process of learning and adjusting a model using data.

15
New cards

inference

Using a trained model to predict an output for new data.

16
New cards

supervised learning

Learning from labeled data with known correct answers.

17
New cards

unsupervised learning

Finding patterns in data without known labels.

18
New cards

clustering

Grouping similar data points together without predefined labels.

19
New cards

regression

Predicting a numerical value

20
New cards

classification

Predicting a category

21
New cards

loss function

A function measuring how wrong a model's predictions are.

22
New cards

Mean Squared Error (MSE)

The average of squared prediction errors.

23
New cards

gradient

The direction and rate at which the loss changes.

24
New cards

gradient descent

An optimization method that updates parameters to reduce loss.

25
New cards

learning rate

The step size used when updating model parameters.

26
New cards

if the learning rate is too high

Training may overshoot the minimum and fail to converge.

27
New cards

batch

A smaller group of training examples processed together.

28
New cards

epoch

One complete pass through the training dataset.

29
New cards

training set used for

Learning and updating the model's parameters.

30
New cards

validation set used for

Checking performance and tuning the model during development.

31
New cards

test set used for

Final evaluation on unseen data.

32
New cards

overfitting

Learning training data too closely and performing poorly on new data.

33
New cards

data leakage

When unavailable or test information improperly enters training.

34
New cards

generalization

A model's ability to predict accurately on new, unseen data.

35
New cards

neural network

A model using connected layers of artificial neurons to learn patterns.

36
New cards

artificial neuron

Combines weighted inputs and bias, then applies an activation.

37
New cards

hidden layer

An internal neural-network layer that processes information.

38
New cards

activation function

A function introducing nonlinearity so networks learn complex patterns.

39
New cards

ReLU

Outputs zero for negative inputs; keeps positive inputs unchanged.

40
New cards

forward pass

Sending inputs through a network to produce a prediction.

41
New cards

backpropagation

Calculating gradients backward through a neural network.

42
New cards

deep learning

Machine learning using neural networks with many layers.

43
New cards

Mean Absolute Error (MAE)

The average absolute difference between predictions and actual values.

44
New cards

Root Mean Squared Error (RMSE)

The square root of MSE; measures error in the original units.

45
New cards

accuracy

The percentage of predictions that are correct.

46
New cards

precision

Of predicted positives, the proportion that are truly positive.

47
New cards

recall

Of actual positives, the proportion the model correctly finds.

48
New cards

F1-score

The mean of precision and recall.

49
New cards

attention in a transformer

A mechanism that helps the model focus on relevant input information.

50
New cards

multimodal AI

AI that processes multiple data types, such as text, images, and audio.

51
New cards

AI agent

A system that uses a model and tools to take actions toward a goal.

52
New cards

Why was AlexNet important in 2012?

It demonstrated powerful GPU-based deep learning for image recognition.

53
New cards

What was the 1956 Dartmouth workshop important for?

It helped establish artificial intelligence as a research field.

54
New cards

Linear Regression

Predicts numerical values by fitting a linear relationship.

55
New cards

Logistic Regression

Predicts probabilities for classification, often between two classes.

56
New cards

Decision Tree

Makes predictions by following a series of decision rules.

57
New cards

Random Forest

Combines many decision trees to make more reliable predictions.

58
New cards

Gradient Boosting

Builds models sequentially, each correcting earlier prediction errors.

59
New cards

Support Vector Machine (SVM)

Finds a boundary that best separates classes, usually maximizing the margin.

60
New cards

K-Nearest Neighbors (KNN)

Predicts using the labels or values of nearby data points.

61
New cards

Naive Bayes

A probabilistic classifier assuming features are conditionally independent.

62
New cards

K-Means Clustering

Divides unlabeled data into K groups around cluster centers.

63
New cards

Hierarchical Clustering

Creates a tree of nested groups based on data similarity.

64
New cards

Principal Component Analysis (PCA)

Reduces dimensions while keeping as much data variation as possible.

65
New cards

Artificial Neural Network (ANN)

Connected artificial neurons that learn relationships from data.

66
New cards

Convolutional Neural Network (CNN)

A neural network that detects spatial patterns, especially in images.

67
New cards

Recurrent Neural Network (RNN)

A network that uses previous information when processing sequences.

68
New cards

Long Short-Term Memory (LSTM)

An RNN architecture designed to remember information over long sequences.

69
New cards

Autoencoder

A network that compresses data and learns to reconstruct it.

70
New cards

Generative Adversarial Network (GAN)

Two networks compete: one generates samples, the other detects fakes.

71
New cards

Transformer

A neural-network architecture using attention to process relationships in data.

72
New cards

Large Language Model (LLM)

A large model trained on text to understand and generate language.

73
New cards

Diffusion Model

A generative model that learns to create data by removing noise.

74
New cards

Reinforcement Learning (RL)

Learning actions through rewards and penalties from interactions.

75
New cards

helps a decision tree choose classification splits

Gini impurity or information gain.

76
New cards

Gini impurity of 0

All samples in the node belong to the same class.

77
New cards

algorithm that uses Euclidean distance to find neighbors

K-Nearest Neighbors (KNN).

78
New cards
Why can high accuracy be misleading with imbalanced classes?
A model can predict the majority class and miss rare cases.
79
New cards
A model predicts all transactions as normal in 98% normal data. Accuracy?
98%, even though it detects no fraud.
80
New cards

recall,

Of all actual positives, how many the model correctly detects.

81
New cards

high recall particularly important

When missing a positive case is costly, such as disease detection.

82
New cards

precision

Of predicted positives, how many are truly positive.

83
New cards

F1-score

Precision and recall into one balanced score.

84
New cards
Why does KNN need feature scaling?
To stop features with large numerical ranges dominating distances.
85
New cards
KNN uses age (20–80) and income (20,000–100,000). What is the risk?
Income may dominate the distance calculation unless features are scaled.
86
New cards
A delivery-time value is empty. What data-quality problem is this?
Missing value (completeness problem).
87
New cards
A distance is recorded as −3 km. What problem is this?
An invalid value (validity problem).
88
New cards
A numerical column contains 'forty'. What problem is this?
An inconsistent data type or format.
89
New cards
The same order appears twice. What problem is this?
Duplicate records (uniqueness problem).
90
New cards
A column contains 'yes', 'Yes', and 'YES'. What problem is this?
Inconsistent formatting or capitalization.
91
New cards
A model learns from emails labeled spam or not spam. Learning type?
Supervised learning, because the correct labels are provided.
92
New cards
An algorithm groups customers without labels. Learning type?
Unsupervised learning, specifically clustering.
93
New cards
Training accuracy is 99%, test accuracy is 60%. What is likely wrong?
Overfitting: the model learned training-specific patterns.
94
New cards
Name two general ways to reduce overfitting.
Use a simpler model and regularization.
95
New cards
A decision tree overfits. What setting could you change?
Reduce its maximum depth or prune the tree.
96
New cards
Why keep validation and test sets separate?
Validation tunes the model; the untouched test set evaluates it fairly.
97
New cards
What is feature selection?
Choosing useful features from the existing dataset.
98
New cards
What is feature extraction?
Transforming data into a new set of useful features.
99
New cards

Feature selection.

Keeping mileage and engine size from a car dataset is what process?

100
New cards
Using PCA to transform several car measurements is what process?
Feature extraction.