Skip to content

Instantly share code, notes, and snippets.

@shubham0204
Created May 27, 2019 12:21
Show Gist options
  • Save shubham0204/68e68666ca81c544b6b20c4a4c0ecf28 to your computer and use it in GitHub Desktop.
Save shubham0204/68e68666ca81c544b6b20c4a4c0ecf28 to your computer and use it in GitHub Desktop.
output = h( test_X , weights , bias )
labels = test_Y
accuracy_op = tf.metrics.MeanAbsoluteError()
accuracy_op.update_state( labels , output )
print( 'Mean Absolute Error = {}'.format( accuracy_op.result().numpy() ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment