Export individual train and validation loss of deep learning model with multiple outputs



I am building by keras a deep learning model that has multiple output. The model is trained by using fit_generator, the returned history data is the total loss (the mean of the train or validation loss of all output).
And this seems been hard coded in functions called keras_training_history() and to_keras_training_history(), and built into the library.

I have tried to revise these two functions and source them externally and got no luck.

Does anyone have any solution to it? Any idea is appreciated?

Thank you!


Can you please provide a minimal reprex (reproducible example) of what you are trying to do? The goal of a reprex is to make it as easy as possible for me to recreate your problem so that I can fix it: please help me help you!

If you've never heard of a reprex before, start by reading "What is a reprex", and follow the advice further down that page.