yi∈Ry_i \in \mathbb{R}yi∈R -- regression task
salary prediction
movie rating prediction
yiy_iyi belongs to a finite set -- classification task
object recognition
topic classification
a(x)=b+w1x1+w2x2+⋯+wdxda(x) = b + w_1x_1 + w_2x_2 + \dots + w_dx_da(x)=b+w1x1+w2x2+⋯+wdxd
w1,…,wdw_1, \dots , w_dw1,…,wd-- coefficients (weights)
bbb -- bias
ddd + 1 parameters
to make it simple: there is always a constant feature
Vector notation:
For a sample XXX:
How to measure model quality?
Fitting a model to training data:
Exact solution:
But inverting a matrix is hard for high-dimensional data!
Last updated 6 years ago