I have some cost function in keras as follows:
def loss(y_true, y_pred): cost = f1(y_pred * x) x = .9 * f2(pred) + .1 * f3(pred) return cost