chiphuyen / stanford-tensorflow-tutorials

This repository contains code examples for the Stanford's course: TensorFlow for Deep Learning Research.
http://cs20.stanford.edu
MIT License
10.32k stars 4.32k forks source link

huber loss equation in eager execution #148

Open fsilavong opened 4 years ago

fsilavong commented 4 years ago

Hi, I was going through the assignments and realised that the huber loss equation was multiplied by two here:

https://github.com/chiphuyen/stanford-tensorflow-tutorials/blob/51e53daaa2a32cfe7a1966f060b28dbbd081791c/examples/04_linreg_eager.py#L43

Any reason for that?