I am new to tensorflow. I want to write my own custom loss function. Is there any tutorial about this? For example, the hinge loss or a sum_of_square_loss(thoug
tensorflow
In addition to the other answer, you can write a loss function in Python if it can be represented as a composition of existing functions.
Take a look, for example, at the implementation of sigmoid_cross_entropy_with_logits link, which is implemented using basic transformations.
sigmoid_cross_entropy_with_logits