Skip to content

Instantly share code, notes, and snippets.

@Pratik-Shukla-22
Created October 11, 2022 14:47
Show Gist options
  • Save Pratik-Shukla-22/0bdf38f8591e5187d49b4900aa0f9c14 to your computer and use it in GitHub Desktop.
Save Pratik-Shukla-22/0bdf38f8591e5187d49b4900aa0f9c14 to your computer and use it in GitHub Desktop.
#Error calculations:
res = (predicted_test - test_y)
RSS = (res*res).sum()
print("Residual Sum of Squares: ",RSS)
#Output:
Residual Sum of Squares: CO2EMISSIONS 252847.165191
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment