Locally weighted regression
is the training example , ,
is the number of examples, is the number of features
Hypothesis function
Loss function
Parametric learning algorithm finds a fixed set of parameters . Non-parameteric learning algorithm requires to keep the training data set, which could be cumbersome for large data sets. Locally weighted linear regression is one example of non-parametric learning algorithms.
For linear regression, to evaluate at , we fit to minimize , and then return .
For locally weighted regression, we look at a local neighborhood of , focusing (putting more weight) on a narrow range near , we fit a straight line, and make a prediction at the value of .
Fit to minimize
where the weight function is defined as