demoleiwang / EC4SRec

Code for the CIKM2022 Paper "Explanation Guided Contrastive Learning for Sequential Recommendation"
27 stars 4 forks source link

About your experiments #2

Open mliwang opened 1 year ago

mliwang commented 1 year ago

Your experiments diccuss on ml-1m dataset . But when I run your command program "python run_train.py --dataset=ml-1m --model=SASRec --method=CL4SRec --gpu_id=0", I get an error "\recbole\data\dataloader\general_dataloader.py", line 172, in item_reorder num_reorder = math.floor(length beta) TypeError: unsupported operand type(s) for : 'Tensor' and 'NoneType''"

peggy95 commented 1 year ago

same here

peggy95 commented 1 year ago

after

  1. cp recbole/properties/methods/CL4SRec.SASRec.ml-100k.yaml recbole/properties/methods/CL4SRec.SASRec.ml-1m.yaml
  2. cp recbole/properties/dataset/ml-100k.yaml recbole/properties/dataset/ml-1m.yaml it works.

I think it might be caused by incorrect ranges of eta gamma and beta.