Skip to content

Commit

Permalink
test loss function
Browse files Browse the repository at this point in the history
  • Loading branch information
Arno1235 committed Mar 22, 2023
1 parent f1ae79d commit 136267e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _weight.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ def feedback_weight_map(flat_probs, flat_labels, beta, op):
'''
probs = tf.reduce_sum(flat_probs*flat_labels, axis=-1)
weight_map = tf.exp(-tf.pow(probs, beta)*tf.math.log(tf.constant(op, "float")))
return weight_map
return weight_map

0 comments on commit 136267e

Please sign in to comment.