MLwithTensorFlow2ed icon indicating copy to clipboard operation
MLwithTensorFlow2ed copied to clipboard

Untangle curve of listing 3.4 - 3.5.

Open ruddyscent opened this issue 3 years ago • 0 comments

  • Change variable name, final_cost to final_coeffs. The final_cost is not cost, but coefficients.
  • Sort x_train and y1 before plotting them. The tangled curve is due to the unordered x_train. I could fix it using np.argsort.
  • Add seed to random for the reproducibility of the result.
  • Set an environment variable to suppress debugging messages from TensorFlow.

ruddyscent avatar Oct 24 '21 13:10 ruddyscent