Skip to content

Instantly share code, notes, and snippets.

@cedricconol
Created May 23, 2020 03:09
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 cedricconol/887637af10679b4516966e70a593b2e2 to your computer and use it in GitHub Desktop.
Save cedricconol/887637af10679b4516966e70a593b2e2 to your computer and use it in GitHub Desktop.
Linear regression TF2 MSE
def mse(self, true, predicted):
return tf.reduce_mean(tf.square(true-predicted))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment