get_loss_data function

Retrieve loss data from a selection of models