# plotting plt.subplots(figsize=(8, 5)) plt.scatter(X[:, 2], y, color="blue") plt.plot(X, best_fit, color="red") plt.title("The impact of feature at index 2 on target label") plt.xlabel("Feature at index 2") plt.ylabel("Target label") plt.show()