I am using below code to visualize my algorithm. but I am facing issue with following error.
AttributeError: Unknown property colour
from matplotlib import pyplot as plt
regression = LinearRegression()
model = regression.fit(X_train,Y_train)
preds = model.predict(X_test)
plt.scatter(X_train,Y_train, colour = 'red')
plt.plot(X_train, preds, colour = 'blue')
plt.title('salary vs experiance')
plt.xlabel("years")
plt.ylabel("salary")
plt.show()
color, how about checking the documentation?