Thank you very much ! My code is now executable. I changed the output layer of my model and there is now only one neuron that uses Sigmoid activation. I also reduced the number of hidden neurons. The new model architecture can be examined below:

There is one small bit that is still ambiguous. The validation loss increases in every epoch,  while the training loss decreases. Are there any more problems?
Thanks in advance !
11176×103 21.3 KB