Training a neural network with TWO possible correct outputs for one input
With Keras, you could use the functional API, to estimate a model with two outputs („multioutput“). Simply train the model on two outputs like:
# Outputs
out1 = Dense(1)(x)
out2 = Dense(1)(x)

# Compile/fit the model
model = Model(inputs=Input_1, outputs=[out1,out2])
model.compile(optimizer = &quot;rmsprop&quot;, loss = 'mse')

# Add actual data here in the fit statement
model.fit(train_data, [train_targets,train_targets2], epochs=500, batch_size=4, verbose=0, validation_split=0.2)

Find the full model here: https://github.com/Bixi81/Python-ml/blob/master/keras_multitarget_functionalAPI.py