Machine Learning Formulas (Set 3)

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

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:18 PM on 3/31/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

23 Terms

1
New cards

hard margin objective

Minimize one half of the squared L2 norm of w; this maximizes the margin by keeping w small.

2
New cards

hard margin constraint

For every training example i, y sub i times w transpose x sub i is at least one; this enforces correct classification with a margin.

3
New cards

soft margin objective

Minimize one half of the squared L2 norm of w plus C divided by N times the sum over i of xi sub i; this trades off margin size and violations.

4
New cards

soft margin constraint

For every training example i, y sub i times w transpose x sub i is at least one minus xi sub i, and xi sub i is at least zero; this allows controlled margin violations.

5
New cards

hinge loss

Max of zero and one minus y sub i times w transpose x sub i; penalizes points inside the margin or misclassified.

6
New cards

SVM loss

Minimize one half of the squared L2 norm of w plus C divided by N times the sum over i of max of zero and one minus y sub i times w transpose x sub i; this is regularized hinge-loss minimization.

7
New cards

logistic loss

Log of one plus e to the negative y times w transpose x; a smooth alternative loss commonly used for probabilistic classification.

8
New cards

kernel function

Kernel of x and z equals the inner product of phi of x and phi of z; computes similarity in feature space without explicitly computing phi.

9
New cards

Gaussian kernel

Kernel of x and z equals e to the negative squared Euclidean distance between x and z divided by two sigma squared; emphasizes nearby points (radial basis behavior).

10
New cards

polynomial kernel

Kernel of x and z equals gamma times x transpose z plus constant c, all raised to the degree d; captures interactions up to the chosen degree.

11
New cards

dual solution

w equals the sum over i of alpha sub i times y sub i times x sub i (for linear SVM after solving the dual problem); only points with nonzero alpha contribute.

12
New cards

KNN classification formula

Prediction at x equals the sign of the sum over i in N sub k of x of y sub i; majority vote among the k nearest neighbors.

13
New cards

KNN regression formula

Prediction at x equals one over k times the sum over i in N sub k of x of y sub i; average of the k nearest neighbor outputs.

14
New cards

Euclidean distance

Distance between x and z equals the square root of the sum over coordinate j of (x sub j minus z sub j) squared; straight-line distance in d dimensions.

15
New cards

Jaccard distance

Distance between sets A and B equals one minus (size of A intersection B divided by size of A union B); measures dissimilarity based on overlap.

16
New cards

Gini impurity

One minus the sum over classes c of p sub c squared; higher values mean the node’s labels are more mixed.

17
New cards

Bayes rule

Probability of B given A equals probability of A given B times probability of B divided by probability of A (assuming probability of A is not zero); connects inverse conditionals.

18
New cards

Naive Bayes formula

Probability of class y given features x is proportional to probability of y times the product over features i of probability of x sub i given y; for classification, the denominator probability of x is omitted because it is constant across y.

19
New cards

K-means objective

Minimize the sum over data points i of the minimum over clusters k of the squared Euclidean distance between x sub i and mu sub k; this minimizes within-cluster sum of squares.

20
New cards

L2 norm

The L2 norm of w equals the square root of the sum over components j of w sub j squared; it measures vector length.

21
New cards

margin violation

A point violates the margin if y sub i times w transpose x sub i is less than one; equivalently, its hinge loss is positive.

22
New cards

eigenvector

A vector v such that A times v equals lambda times v; it is a direction preserved by the linear transformation up to scaling.

23
New cards

logistic function

One over one plus e to the negative input; maps any real number to a value between zero and one (often interpreted as a probability).

Explore top notes

note
Physiologie cardiaque
Updated 705d ago
0.0(0)
note
History Mini Unit
Updated 342d ago
0.0(0)
note
Digestive System
Updated 1113d ago
0.0(0)
note
Unit 4: Financial Sector
Updated 1089d ago
0.0(0)
note
the heart
Updated 1062d ago
0.0(0)
note
The Renaissance
Updated 578d ago
0.0(0)
note
Physiologie cardiaque
Updated 705d ago
0.0(0)
note
History Mini Unit
Updated 342d ago
0.0(0)
note
Digestive System
Updated 1113d ago
0.0(0)
note
Unit 4: Financial Sector
Updated 1089d ago
0.0(0)
note
the heart
Updated 1062d ago
0.0(0)
note
The Renaissance
Updated 578d ago
0.0(0)

Explore top flashcards

flashcards
bio ch 54
66
Updated 1259d ago
0.0(0)
flashcards
Chapter 44 - Industry
298
Updated 1106d ago
0.0(0)
flashcards
Marketing Exam 2
50
Updated 883d ago
0.0(0)
flashcards
Enska kafli 3
62
Updated 1157d ago
0.0(0)
flashcards
BIOL LABORATORY EQUIPMENTS
41
Updated 1105d ago
0.0(0)
flashcards
US History Midterm Review
49
Updated 1173d ago
0.0(0)
flashcards
144 MedTerm #2
39
Updated 775d ago
0.0(0)
flashcards
1.2 Obj 2 & 3
32
Updated 574d ago
0.0(0)
flashcards
bio ch 54
66
Updated 1259d ago
0.0(0)
flashcards
Chapter 44 - Industry
298
Updated 1106d ago
0.0(0)
flashcards
Marketing Exam 2
50
Updated 883d ago
0.0(0)
flashcards
Enska kafli 3
62
Updated 1157d ago
0.0(0)
flashcards
BIOL LABORATORY EQUIPMENTS
41
Updated 1105d ago
0.0(0)
flashcards
US History Midterm Review
49
Updated 1173d ago
0.0(0)
flashcards
144 MedTerm #2
39
Updated 775d ago
0.0(0)
flashcards
1.2 Obj 2 & 3
32
Updated 574d ago
0.0(0)