# How can we get gradient with some other loss function apart from MSE?

In most of the gradient search examples, the update to weights are done by subtracting the derivative of MSE.

Can we have an example, where we did not use derivative of MSE, but used derivative of some other loss function?

If so, please show the Python code.