RecVAE
RecVAE copied to clipboard
removed nans
- Added epsilon in denominator to the normalization in the encoder, because it was throwing nans otherwise.
- 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.