'Returns the gradient of the Smooth-L1 cost.'

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))))
