(self, x)
return (0.5 * self.be.square(x) * (self.be.absolute(x) < 1) +
                (self.be.absolute(x) - 0.5) * (self.be.absolute(x) >= 1))
Returns the Smooth L1 cost.
Returns the Smooth L1 cost.
Returns the Smooth L1 cost .
def smoothL1(self, x):
        """
        Returns the Smooth L1 cost.
        """
        return (0.5 * self.be.square(x) * (self.be.absolute(x) < 1) +
                (self.be.absolute(x) - 0.5) * (self.be.absolute(x) >= 1))
def smoothL1 ( self , x ) : return ( 0.5 * self . be . square ( x ) * ( self . be . absolute ( x ) < 1 ) + ( self . be . absolute ( x ) - 0.5 ) * ( self . be . absolute ( x ) >= 1 ) )