Created
May 24, 2020 23:25
-
-
Save elumixor/2db2ea2199fd921a7bdbb57a46e4566f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def surrogate_loss(new_probabilities, old_probabilities, advantages): | |
return (new_probabilities / old_probabilities * advantages).mean() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment