hi, i have a multi label problem, and i built a loss:

def loss(p, y):
fa= -np.dot(1-y), list(np.log(1-,p))
l = (y * list(np.log§)
prod = (1-y) -  l
loss = fa+ np.min(prod)
return loss

the problem is, that this function gets 61 length prediction vector (prec for each class), and 61 length label vector
what i dont understand is:

how can i turn it into cosume loss that actually works with the code? (backpro. et…)
how can i handle with a list of all the prediction and the labels in the bacth with this function?