AkiraZC / CATN

The implementation of SIGIR 2020 paper "CATN: Cross-Domain Recommendation for Cold-Start Users via Aspect Transfer Network“, Cheng Zhao, Chenliang Li, Rong Xiao, Hongbo Deng and Aixin Sun
42 stars 7 forks source link

Code cannot run #1

Open ellieokok opened 4 years ago

ellieokok commented 4 years ago

hi,I've been studing your code recently,but there is a problem when I try to run this code.When I ran dataset/preprocessing.py, code stop at split_train_test(); (this is the output of dataset/preprocessing.pyLoad raw data from book2movie/reviews_Books_5.csv. Load raw data from book2movie/reviews_Movies_and_TV_5.csv. Source domain users 126666, items 63202, ratings 3494976. Target domain users 27822, items 12287, ratings 779376. Overlapping users 6074 (0.000%, 0.000%). Ratio 1.00, common users 3037, vali cold-start users 1214, test cold-start users 1823.)

so when I try to run runner/CATN_runner.py,there is a error just like this Traceback (most recent call last): File "CATN_runner.py", line 106, in <module> with open(pkl_path % args.ratio, 'rb') as f: IOError: [Errno 2] No such file or directory: './dataset/book2movie/crossdata_i30_u10_0.20.pkl'

I wonder if u can help to figure this out ,thank u!!

MuhTawfik commented 3 years ago

hi, is it okay with you if you have some time to explain the code to me?

xuqhang commented 2 years ago

hi,I've been studing your code recently,but there is a problem when I try to run this code.When I ran dataset/preprocessing.py, code stop at split_train_test(); (this is the output of dataset/preprocessing.pyLoad raw data from book2movie/reviews_Books_5.csv. Load raw data from book2movie/reviews_Movies_and_TV_5.csv. Source domain users 126666, items 63202, ratings 3494976. Target domain users 27822, items 12287, ratings 779376. Overlapping users 6074 (0.000%, 0.000%). Ratio 1.00, common users 3037, vali cold-start users 1214, test cold-start users 1823.)

so when I try to run runner/CATN_runner.py,there is a error just like this Traceback (most recent call last): File "CATN_runner.py", line 106, in <module> with open(pkl_path % args.ratio, 'rb') as f: IOError: [Errno 2] No such file or directory: './dataset/book2movie/crossdata_i30_u10_0.20.pkl'

I wonder if u can help to figure this out ,thank u!!

I guess you haven't generated the pkl file. In my case, it costs me about 5 days to outcome the pkl file in my laptop.

a1074089982 commented 2 years ago

How to generate the pkl file?

banxiabanban commented 6 months ago

Have you solved the problem?I meet the same.