plt.scatter(train.ENGINESIZE, train.CO2EMISSIONS, color='blue')
plt.plot(train_x, regr.coef_[0][0]*train_x + regr.intercept_[0], '-r') **--this line**
plt.xlabel("Engine size")
plt.ylabel("Emission")
What is the meaning of this syntax?
train_x is the EngineSize vs formula ie. theta0+theta1*~x(mean)
but what is this -r in the syntax & then how is it plotting...
Kindly someone elaborately explain me dis