Keras documentation says :
"history object records training loss values  at successive epochs "   So given this definition, I believe it is not the average. I am really wondering now that why should the behaviour of 2 simple networks represented in two different frameworks be so different.