CNTK
CNTK copied to clipboard
priority compute in lightrnn
def next_row(self):
sort_id = self.prob_row[self.row_id][1]
self.row_loss_sum -= self.prob_row[self.row_id][0]
self.row_id += 1
value = 0 if self.row_id == g_vocab_sqrt - 1 else 1.0 * self.row_loss_sum / (g_vocab_sqrt - self.row_id - 1)
return SortNode(sort_id, self.word_id, value)
in the word re-allocation of lightrnn, the priority of current word is compute as above, why using the mean loss, instead of current position's loss
could anyone given some reason about this?
Where the above code is from?
@ebarsoumMS the code above copy from here