Implementing Loss Functions¶
WARNING:tensorflow:From /opt/anaconda3/lib/python3.8/site-packages/tensorflow/python/compat/v2_compat.py:111: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
L2 norm loss function¶
[<matplotlib.lines.Line2D at 0x7fdf74c019d0>]
83.667336
TensorShape([Dimension(500)])
L1 norm loss function¶
[<matplotlib.lines.Line2D at 0x7fdf75bb4370>]
[<matplotlib.lines.Line2D at 0x7fdf76d2ac40>]
Pesudo-Hubber Loss Function¶
(-0.25, 0.25)
[<matplotlib.lines.Line2D at 0x7fdf586e2670>]
[<matplotlib.lines.Line2D at 0x7fdf58b77c10>]
[<matplotlib.lines.Line2D at 0x7fdf58db87c0>]
[<matplotlib.lines.Line2D at 0x7fdf58ead1f0>]