hand10ryo / PyTorchCML

PyTorchCML is a library of PyTorch implementations of matrix factorization (MF) and collaborative metric learning (CML), algorithms used in recommendation systems and data mining.
MIT License
20 stars 2 forks source link

implement dictionary base model #4

Closed hand10ryo closed 3 years ago

hand10ryo commented 3 years ago

The embedding vectors are passed as a dictionary type, and each embedding is given a name. I also introduced a dictionary called column_names as a member variable of the trainer for batches, so that I can set what each row of the batch represents.