Machine Learning

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

1/171

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:38 PM on 9/25/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

172 Terms

1
New cards

Predictive tasks

Target variable from number of features: classification, regression & predictive clustering

2
New cards

Classification

Predicts categorical target variable from set of features (image classification)

3
New cards

Regression

Predicts numerical target variable from set of features (weather temperature forecast)

4
New cards

Predictive clustering

Predicts hidden/latent variable from features and assign labels to clusters of data (fraud detection)

5
New cards

Descriptive tasks

Exploits underlying structure of the data: descriptive clustering, association rule mining & sub-group discovery

6
New cards

Descriptive clustering

Represents different groups in data without predicting the target (pattern mining)

7
New cards

Association rule mining

Rule-based task for relations between variables (online shopping recs)

8
New cards

Sub-group discovery

Associations among variables with respect to property of interest (pattern findings)

9
New cards

Supervised learning

Training set of examples (instances labelled with target value)

10
New cards

Unsupervised learning

No training set examples

11
New cards

First categorisation (main intuition)

Geometric models, probabilistic models & logical models

12
New cards

Second categorisation (modus operandi)

Grouping models & grading models

13
New cards

Bayes Rule

P(Y|X) = (P(X|Y)P(Y)) / P(X)
Posterior = P(Y|X)
Likelihood = P(X|Y)
Prior = P(Y)
Evidence = P(X)

14
New cards

Declarative

Model can be translated into rules for humans

15
New cards

Grouping models

Break instance space into groups/segments.
Fixed and finite resolution.
Cannot distinguish individual instances beyond resolution.

16
New cards

Grading models

Global over instance space.
Infinite resolution (Cartesian space).

17
New cards

Training phase (learning)

Create model to perform tasks using training set of numerous data points (slow).

18
New cards

Inference phase

Use model to perform task on new data points.

19
New cards

Classifier

Mapping where the instances are finite with small set of class labels

20
New cards

Precision/confidence

c(^)(x) = c(x) = +
———————-
c(^)(x) = +

Positive predicted and reality divided by positive predicted.

21
New cards

Notation for formulas

c(x) = reality (ground truth)
c(^)(x) = prediction (of the model)

22
New cards

Accuracy

c(^)(x) = c(x)
——————
total

Predicted and actual are the same.

23
New cards

Error rate

c(^)(x) =! c(x)
——————
total
Predicted and actual are not the same.

24
New cards

True positive rate (sensitivity)

c(^)(x) = c(x) = +
———————
c(x) = +

Positive predicted and actual divided by actual positive.

25
New cards

True negative rate (specificity)

c(^)(x) = c(x) = -
———————
c(x) = -

Negative predicted and actual divided by actual negative.

26
New cards

False positive rate

Predicted positive&actual negative divided by actual negatives.

27
New cards

False negative rate

Predicted negative&actual positive divided by actual positive.

28
New cards

Sensitivity

How many relevant are selected.

29
New cards

Specificity

How many negative selected are negative.

30
New cards

Precision

How many selected are relevant.

31
New cards

Recall

How many relevant are selected.

32
New cards

F-measure/score

2
—————— = 2 x precxrec/prec+rec
1/prec + 1/rec

33
New cards

Train-test splits

Tets set makes predictions in inference phase on data not used in training phase.

34
New cards

Overfitting

Performs well on training data, bad on test data.

35
New cards

Underfitting

Performs bad on both training and test data.

36
New cards

Low generalisability

Overfitting and underfitting.

37
New cards

Decision rule τ

Coverage plot and ROC curve summarize confusion matrices

38
New cards

AUC (area under the curve)

Summary of the model skills.

39
New cards

Scoring classifier

Maps instance space to a k-vector of real numbers.

40
New cards

Loss function

Maps each example margin to loss (L(z(x)) and rewards positive margins and penalizes negative margins.

41
New cards

Probability estimator

Scoring classifier which outputs probability vector over classes. How likely an instance belongs to a class.

42
New cards

Mean squared error (MSE)

Average squared error (SE)

43
New cards

Validating classifiers

Classification (contingency tables, train/test), scoring and ranking & probability estimation.

44
New cards

One vs rest

Learning: train k or k-1 separate classes.
Inference: use classifiers and form a code word based on output.

45
New cards

One vs one or all pairs

Training: separate classifiers for each pair of classes.
Inference: use classifications for code word and compare to all rows and find nearest row.

46
New cards

One versus all complexity

Training: O(kmα)
Inference: O(kβ)

47
New cards

One vs one complexity

Training: O(k2(m/k)α
Inference: O(k2β)

48
New cards

Macro-average (binary classifier ROC)

TPR1 + TPR2 + TPR3 / 3

49
New cards

Micro-average (binary classifier ROC)

TP1 + TP2 + TP3 / TP1 + TP2 + TP3 + FN1 + FN2 + FN3

50
New cards

Bias-variance dilemma

Low complexity model suffers less from variability (random variations in the training data) but systematic bias. High complexity model eliminates bias but suffers non-systematic errors due to variance.

51
New cards

Distance based clustering

Depend on centre of mass or exemplar.

52
New cards

Exemplar

Minimises some distance-related quantity over all instances (scatter).

53
New cards

Rand-index

Accuracy

54
New cards

Silhouette coefficent

s = b-a / max(a,b)
a: mean distance between instance and points in same cluster.
b: mean distance between instance and points in nearest cluster.

55
New cards

Subgroup discovery

Supervised learning task. Addresses discovery of interesting population subgroups.

56
New cards

Chi-squared test

χ2 = Σ (Oi - Ei)2 / Ei
Ei: expected value.
Oi: observed value.

57
New cards

Trees

Decision trees, random forest & gradient boosting.

58
New cards

Empirical probability

p(.) = n+ / n+ + n-

59
New cards

Minority class (misclassification error)

Notation for p(.) = x
min(x, 1-x)

60
New cards

Entropy

Notation for p(.) = x
-xlog2x(1-x)log2(1-x)
Amount of information in terms of number of bits needed to encode probability of an event.
Higher probability → less number of bits.

61
New cards

Gini index

Notation for p(.) = x
2x(1-x)

62
New cards

Purity gain

Original entropy - entropy after splitting.

63
New cards

Limiting number of threshold

One split in space between two observed values.
Only splits between examples from different classes can improve info gain.

64
New cards

Preventing overfitting

Limit number of iterations.
Pruning the tree (removing branches).

65
New cards

Reduced error pruning

Start at leaves and replace each node with majority class.
Keep change if prediction accuracy is not affected and keep a validation set.

66
New cards

Sources of imbalance

Asymmetric class distribution and mis-classification cost.

67
New cards

Gini

n1+ n1- / n1
——————
n+ n- / n

68
New cards

Squared Gini

Minimises relative impurity and is insensitive to changes in class distribution.

69
New cards

Classification trees

Minority class, entropy & Gini index.

70
New cards

Regression trees

Variance

71
New cards

Coefficient of determination

R2 = 1 - RSS/TSS

72
New cards

Solutions of outliers

  1. Ordinary leasts squares method: train model, filter noisy points & retrain.

  2. Total least squares method: generalize least squares method so x and y are noisy (not always unique).


73
New cards

Perceptron

Linear classifier that will achieve perfect separation on linearly separable data. Iterates over training set and updates weight vector every time it encounters an incorrect classified example.

74
New cards

Neural network

Weight vector: w with length #features+1
Learning rate: η showing how fast the perceptron converges to the separating line (0<η<1).

75
New cards

SVM

Optimal decision boundary between different classes.

76
New cards

Margin

m / ||w||

m: distance between decision boundary and nearest training instances as measured along w.

77
New cards

Optimisation problem (maximising margin)

w*, t* = argmin1/2||w||2

78
New cards

Slack variables

Allows examples to be inside the margin or on the wrong side.

79
New cards

Complexity parameter

Trades off margin maximisation against slack variable minimisation.

80
New cards

Non-linear transformation

From original input space to new feature space (kernels).

81
New cards

Kernel

Calculates the dot product in feature space directly from the vectors in the original space.

82
New cards

Kernel trick

Calculate dot product in some feature space but without constructing the feature vectors acquired by φ(x) explicitly.

83
New cards

Feature statistics

Statistics of central tendency, statistic of dispersion & shape statistics.

84
New cards

Range

Difference min and max.

85
New cards

Midrange point

Mean of two extreme values.

86
New cards

p-th percentile

p per cent of the instances fall below it

87
New cards

First central moment

Average deviation from the mean (0).

88
New cards

Second central moment

Average squared deviation from the mean (variance).

89
New cards

Skewness

m3 / σ3

90
New cards

Kurtosis

m4/σ4

91
New cards

Categorical/nominal features

Do not allow any statistical summary except the node.

92
New cards

Ordinal features

Ordening but no scale.

93
New cards

Quantitative features

Mapping into the reals.

94
New cards

Normalisation

Quantitative to quantitative

95
New cards

Calibration

Ordinal, categorical & boolean to quantitative

96
New cards

Discretisation

Quantitative to ordinal & categorical

97
New cards

Ordering

Ordinal, categorical & boolean to ordinal

98
New cards

Unordering

Ordinal to categorical

99
New cards

Grouping

Categorical to categorical

100
New cards

Thresholding

Quantitative & ordinal to boolean