This question explains how to create a custom goal (loss) in Keras:
def dummy_objective(y_true, y_pred): return 0.5
As for the y .fit() parameter, since you are the one that processes it at the end (the y_true parameter of the target function is extracted from it), I would say that you can pass everything you need, it can fit into Keras plumbing. And perhaps a dummy vector to pass the dimension checks to see if you really don't need any observation.
In the end, on how to implement this particular paper, looking for a triplet or facenet in Keras doc didnβt return anything. Thus, you probably have to either implement it yourself or find someone who has it.
Arnaud p
source share