Locally Weighted Linear Regression in Python
In this article, we will implement a Non-Parametric Learning Algorithm called the Locally Weighted Linear Regression. First, we will look at the difference between the parametric and non-parametric learning algorithms, followed by understanding the weighting Function, predict function, and finally plotting the predictions using Python NumPy and Matplotlib. Parametric -- In a Parametric Algorithm, we have a fixed set of parameters such as theta that we try to find(the optimal value) while training the data. After we have found the optimal values for these parameters, we can put the data aside or erase it from the computer and just use the model with parameters to make predictions. Remember, the model is just a function.
Mar-18-2021, 12:55:21 GMT
- Technology: