How you are calculating Traning loll and validation loss and which matrix you guys are using to calculate