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