I'd like to model two variables simultaneously using the same features at the input layer (a feed-forward network), but there are missing values in one of them. I'm wondering if there is a way to mask the missing values when computing loss functions in Keras, bacause I don't want to delete Target 1 values at the index of missing Taregt 2 values during preprocessing.

