Matplotlib
Reference
import matplotlib.pyplot as plt
= (10,6)) //Aspect ratio of the plot
plt.figure(figsize 'Super Title)
plt.suptitle(plt.set_tile('Title', loc='left)
plt.xlabel('X Label')
'Y Label')
plt.ylabel(
# Create scatter points
='Predictions', alpha=0.5, color='blue')
plt.scatter(y_test, predictions, label# Plot a line
min(y_test), max(y_test)], [min(y_test), max(y_test)], linestyle='--', color='gray', linewidth=2, label="Actual Observations")
plt.plot([
# Places legend on the plot
plt.legend() plt.show()