recommenders-team / recommenders

Best Practices on Recommendation Systems
https://recommenders-team.github.io/recommenders/intro.html
MIT License
18.72k stars 3.06k forks source link

Error in Sequential RS, Sli-Rec example #1262

Open giorgos202 opened 3 years ago

giorgos202 commented 3 years ago

Trying to dive in Sequential Recommender Systems with the example of the Sli-Rec model but when i try to run the first cell of code in the Notebook i get error: cannot import name 'dynamic_rnn' from 'tensorflow.nn'.

I tried to use another model (Caser / Gru4rec / asvd) but when im running the hparams function with each model i get an error : FileNotFoundError: [Errno 2] No such file or directory: '../../reco_utils/recommender/deeprec/config/asvd.yaml' (for asvd model , same for caser and others)

tongxinz commented 3 years ago

Try to replace dynamic_rnn by tf.nn.dynamic_rnn so that to get around of importing tensorflow.nn, which caused error in my case.

I haven't try the other models, but perhaps you want to confirm what is your current work directory.