Linear regression
There are different types of regression algorithms such as linear regression, ridge regression, polynomial regression, lasso regression, etc., each suitable for different purposes. For example, linear regression is mostly suited for drawing a linear line across a graph that shows a linear relationship between two variables. Ridge regression is used when there is a high degree of collinearity between features. Polynomial regression is suited when the relationship between features is nonlinear. Linear regression is one of the simplest and most commonly used forms of regression ML algorithms. The equation for linear regression is as follows:
(5.1)
where m is the slope of the line, b is the intercept, x is the independent variable ...
Get Machine Learning Guide for Oil and Gas Using Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.