Christiano et al. (2017) learned a reward function from human comparisons instead of hand-written rewards. Humans watch two short clips and say which is better. The model turns reward differences into a probability of preference, and that probability is fitted to the human choices.
Implement preference_probability(r_a, r_b), returning sigmoid(r_a - r_b).
Compute the logistic function of the difference.
No results yet
Run your code to check it against the examples, or submit to run every test.