1 Answers

No, You just need to define your loss function in keras environment, like you have to use their functions to be able to train. Here is just a simple example

import keras

def my_loss(y_true, y_pred):
    # any actions you need to do with the arguments
    result = ...
    # you will have to use backend's functions of keras
    return result

model.compile(loss=my_loss, ...)
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?