ayushkarnawat / profit

Exploring evolutionary protein fitness landscapes
MIT License
1 stars 0 forks source link

Ignore padding index in negative log likelihood (NLL) loss #90

Open ayushkarnawat opened 4 years ago

ayushkarnawat commented 4 years ago

Currently, the NLL loss computation doesn't take into account loss calculated as part of the padding index. These indices need to be ignored to more accurately measure the loss, so that the function optimizes properly.

For now, this doesn't matter since all the sequences are of the same length, meaning no padding is currently being used.