Create PlotLossFunction