Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 20, 2021 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/bf45caa6ee94a31042a644fa8ca58085 to your computer and use it in GitHub Desktop.
Save amankharwal/bf45caa6ee94a31042a644fa8ca58085 to your computer and use it in GitHub Desktop.
mse, bias, variance = bias_variance_decomp(linear_regression, xtrain, ytrain, xtest, ytest,
loss='mse', num_rounds=200, random_seed=123)
print("Average Bias : ", bias)
print("Average Variance : ", variance)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment