recommenders-team/recommenders

[ASK] How can I save SASRec model for re-training and prediction?

Open

#1,718 opened on May 13, 2022

 (2 comments) (0 reactions) (0 assignees)Python (3,319 forks)batch import
help wanted

Repository metrics

Stars
 (21,861 stars)
PR merge metrics
 (Avg merge 6d 16h) (10 merged PRs in 30d)

Description

I have tried to save trained SASRec model.

pickle, tf.saved_model.save, model.save(), and surprise.dump are not working.

While saving, I got warning saying 'Found untraced functions', and while loading, 'AttributeError: 'SASREC' object has no attribute 'seq_max_len''.

Plz someone let me know how to save and load SASRec model!

Contributor guide