changed loss function to put less weights on early predictions
changed recording to ignore inaccurate measurements