Experiment No 2 ML
Experiment No 2 ML
Program:
import matplotlib.pyplot as plt
import numpy as np
from sklearn import datasets, linear_model, metrics
# regression coefficients
print('Coefficients: ', reg.coef_)
## plotting legend
plt.legend(loc = 'upper right')
## plot title
plt.title("Residual errors")
Output:
Graph:
Conclusion:
Thus we have studied the core concept of machine learning and steps
involved in developing a machine learning application about linear regression.