CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

priority compute in lightrnn

Open hanpum opened this issue 8 years ago • 2 comments

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?

hanpum avatar Jan 20 '18 17:01 hanpum

Where the above code is from?

ebarsoumMS avatar Mar 14 '18 22:03 ebarsoumMS

@ebarsoumMS the code above copy from here

hanpum avatar Mar 15 '18 09:03 hanpum