fuxiAIlab / RL4RS

A Real-World Benchmark for Reinforcement Learning based Recommender System
Creative Commons Attribution Share Alike 4.0 International
220 stars 26 forks source link

Get Assert Error when bash run_split.sh #8

Open zlpiscoming opened 8 months ago

zlpiscoming commented 8 months ago

Hi, I run your code and get

Traceback (most recent call last): File "data_preprocess.py", line 179, in dataset2tfrecord(config, file, out_file, is_slate=False) File "data_preprocess.py", line 149, in dataset2tfrecord samples = feature_construct(tmp, is_slate) File "data_preprocess.py", line 97, in feature_construct assert sequence_id - 1 == i AssertionError

When I run bash run_split.sh, How can I solve it and Why I get it? Thanks

fuxiupresearch commented 8 months ago

You can modify the code to "assert sequence_id -1==i, session" to print the session to enrich the error message Or more directly, if sequence_id-1!=i: break