In this notebook, we will train a model by providing years of experience as independent data and salary as dependent data. We will solve the problem by two ways -
- Linear Regression
- Decision Tree Regression
Prerequisites — Basic Understanding of Linear Regression and Decision Tree.
Linear Regression — LinearRegression fits…