Skip to content

Instantly share code, notes, and snippets.

@krunal3kapadiya
Created December 19, 2017 21:12
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 krunal3kapadiya/5164b08251f732fc79310e0d61ba84cd to your computer and use it in GitHub Desktop.
Save krunal3kapadiya/5164b08251f732fc79310e0d61ba84cd to your computer and use it in GitHub Desktop.
# Mean squared error
cost = tf.reduce_sum(tf.pow(pred-Y, 2))/(2*n_samples)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment