I currently have a multi output model
model=Model(inputs=x1, outputs=[y1,y2])
model.compile((optimizer='sgd', loss=[cutom_loss,'mse'])
What is the y_pred
and y_true
values here for mse
loss function? What is the y_true
for mse
; is it output of y2 alone or its both y1 and y2?
In my custom_loss
I need to pass y_true and y_pred from both the outputs sepeartaly for calculation
def custom_loss(y1_true, y1_pred,y2_true, y2_pred):
How can I do this?