Browse Source

typo fix.

tags/v0.30
Nicholas Hirschey Esther Hu 4 years ago
parent
commit
ffda41a12e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      README.md

+ 1
- 1
README.md View File

@@ -201,7 +201,7 @@ for step = 1 to (training_steps + 1) do
// Run the optimization to update W and b values.
// Wrap computation inside a GradientTape for automatic differentiation.
use g = tf.GradientTape()
// Linear regressoin (Wx + b).
// Linear regression (Wx + b).
let pred = W * train_X + b
// Mean square error.
let loss = tf.reduce_sum(tf.pow(pred - train_Y,2)) / (2 * n_samples)


Loading…
Cancel
Save