Learn Before
Concept

Locally Weighted Linear Regression

To make up for the under-fitting or over-fitting problems of ordinary linear regression models, locally weighted linear regression introduce weights to loss function. Its loss is transmitted to: J(θ)=i=1mwi(y(i)θTx(i))2J(\theta)=\sum_{i=1}^m w^i (y^{(i)} - \theta^T x^{(i)})^2 w is used to represent the weights. Its value is calculated using Gaussian kernel function: wi=exp((xxi)22k2)w^i = exp(\frac{(x-x^i)^2}{-2k^2})

0

1

Updated 2021-02-26

Tags

Data Science