# huber

Updated:

huber implements the huber loss, defined as $$x^2$$ when $$\left\lvert x\right\rvert \leq M$$ and $$2\left\lvert x\right\rvert -M$$ for $$\left\lvert x\right\rvert \geq M$$

### Syntax

y = huber(x,M)