1. Create training data We’re going to use Scikit-learn package to generate the regression dataset between salary & experience with 100 samples & 1 feature from sklearn.datasets import make_regression
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
import numpy as np
x, y = make_regression(n_samples=100, n_features=1, noise=10, random_state=0)
x = np.interp(x, (x.min(), x.max()), (10, 20))
y = np.interp(y…