Skip to content

Commit

Permalink
Model sharpness
Browse files Browse the repository at this point in the history
  • Loading branch information
kahst committed Nov 20, 2019
1 parent 41c55d0 commit 0d9df34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def loadParams(net, params):

return net

def logmeanexp(x, axis=None, keepdims=False, sharpness=2):
def logmeanexp(x, axis=None, keepdims=False, sharpness=5):
# in between maximum (high sharpness) and mean (low sharpness)
# https://arxiv.org/abs/1411.6228, Eq. 6
# return T.log(T.mean(T.exp(sharpness * x), axis, keepdims=keepdims)) / sharpness
Expand Down

0 comments on commit 0d9df34

Please sign in to comment.