I\'m working on a detector with Keras, where the output y_true consists in a vector "y" with 500 values, wich contains a pulse that indicates the time of the event det