huber loss

huber loss huber loss 是一種優化平方loss的一種方式,使得loss變化沒有那麼大。 import numpy as np import matplotlib.pyplot as plt import tensorflow as tf def huber_loss(x, d): x = np.abs(x) return ( x<=d ) * x**2 /2
相關文章
相關標籤/搜索