RecVAE icon indicating copy to clipboard operation
RecVAE copied to clipboard

removed nans

Open katop1234 opened this issue 1 year ago • 0 comments

  1. Added epsilon in denominator to the normalization in the encoder, because it was throwing nans otherwise.
  2. Added check in NDCG calculation to skip users for which there were no interactions present, because then then the IDCG was simply 0, and this would result in nans in the calculation. Ideally, this should be dealt with in preprocessing, but I found this to be an easier fix. If you have a better approach, please let me know as I plan to use this in production for my work.

katop1234 avatar Jan 02 '24 19:01 katop1234