write rps loss function

1 job for renku/autosave/aaron.spring/ML_probabilistic/511b33b/2da32f6 in 9 minutes and 11 seconds (queued for 2 seconds)