filmov
tv
Implementation of Polynomial Regression Model in Machine Learning using Python Code

Показать описание
Polynomial Regression is a regression algorithm that models the relationship between a dependent(y) and independent variable(x) as nth degree polynomial. The need of Polynomial Regression in ML can be understood in the below points:
1. If we apply a linear model on a linear dataset, then it provides us a good result as we have seen in Simple Linear Regression, but if we apply the same model without any modification on a non-linear dataset, then it will produce a drastic output. Due to which loss function will increase, the error rate will be high, and accuracy will be decreased.
2.So for such cases, where data points are arranged in a non-linear fashion, we need the Polynomial Regression model.
1. If we apply a linear model on a linear dataset, then it provides us a good result as we have seen in Simple Linear Regression, but if we apply the same model without any modification on a non-linear dataset, then it will produce a drastic output. Due to which loss function will increase, the error rate will be high, and accuracy will be decreased.
2.So for such cases, where data points are arranged in a non-linear fashion, we need the Polynomial Regression model.