MLwithTensorFlow2ed
MLwithTensorFlow2ed copied to clipboard
Untangle curve of listing 3.4 - 3.5.
- Change variable name,
final_costtofinal_coeffs. Thefinal_costis 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 usingnp.argsort. - Add seed to random for the reproducibility of the result.
- Set an environment variable to suppress debugging messages from TensorFlow.