loss = lasagne.objectives.categorical_crossentropy(prediction, target_var)
But, wouldn't it add the loss for repeated indices (where mask == 0) ?
I need to avoid that.Can you help with a principled approach ?
Just a random thought, how do you check for correctness of the model, for Theano code in general ?It might be the case that a bug is unknowingly doing things that you don't want.Visualising computational graph won't help because it gets too complicated.