(self, x)
return (x * self._sigma2 * (self.be.absolute(x) < 1/self._sigma2) +
                self.be.sgn(x) * (self.be.absolute(x) >= 1/self._sigma2))
Returns the gradient of the Smooth-L1 cost.
Returns the gradient of the Smooth-L1 cost.
Returns the gradient of the Smooth - L1 cost .
def smoothL1grad(self, x):
        """
        Returns the gradient of the Smooth-L1 cost.
        """
        return (x * self._sigma2 * (self.be.absolute(x) < 1/self._sigma2) +
                self.be.sgn(x) * (self.be.absolute(x) >= 1/self._sigma2))
def smoothL1grad ( self , x ) : return ( x * self . _sigma2 * ( self . be . absolute ( x ) < 1 / self . _sigma2 ) + self . be . sgn ( x ) * ( self . be . absolute ( x ) >= 1 / self . _sigma2 ) )