I understand that the mask should be based on y_true values, that -1 values in y_true should be masked out (given a value of 0) while other values should be assigned value of 1 in the corresponding position of the mask.
I’ve been trying ways to define the mask but it is not working and I need some help!
Can someone shed some light on what the mask is supposed to be like? A list or a tensor? And how to define its shape?