Beruflich Dokumente
Kultur Dokumente
Math Essentials
HOWEVER
To get really useful results, you need good
mathematical
at e at ca intuitions
tu t o s about certain
ce ta general
ge e a
machine learning principles, as well as the inner
workings of the individual algorithms.
– rows represent
p samples
p No
No
Married
Single
100K
70K
No
No
(records, items, datapoints) Yes Married 120K No
No Divorced 95K Yes
– columns represent
p attributes No Married 60K No
(features, variables)
Yes Divorced 220K No
No Single 85K Yes
No Married 75K No
Natural to think of each sample No Single 90K Yes
– result is a vector
– result is a vector
– result is a scalar
y
Dot product alternative form
a = x ⋅ y = x y cos (θ ) θ
x
Matrix-matrix multiplication
– vector-matrix multiplication
p jjust a special
p case
TO THE BOARD!!
Multiplication is associative
A⋅(B⋅C)=(A⋅B)⋅C
Multiplication is not commutative
A ⋅ B ≠ B ⋅ A (generally)
Transposition rule:
( A ⋅ B )T = B T ⋅ A T
Maximum likelihood
Expectation maximization
Gradient descent