How to optimize Huber loss?

1.3k Views Asked by At

One part of my learning algorithm contains Huber loss. I would like to optimize it using gradient decent method. Unfortunately I don't know, how can I determine the value $h$ for that. Here is definition of Huber loss.

Second question is that, what is the gradient of Huber loss ?

enter image description here