hexiangnan / adversarial_personalized_ranking

Adversarial Learning, Matrix Factorization, Recommendation
https://github.com/hexiangnan/adversarial_personalized_ranking
215 stars 62 forks source link

为什么testRatings是空的 #12

Open aMIT-feat-aMEI opened 4 years ago

aMIT-feat-aMEI commented 4 years ago

何老师您好,我用了您的代码做实验,为什么testRatings是空的

22
dinry commented 4 years ago

我也遇到了这个问题,请问解决了吗

zrj-etc commented 4 years ago

请问这个问题怎么解决呀?

georgezzzh commented 3 years ago

Python3使用全局变量时(global),会导致变量为None,解决措施是用作者使用的Linux+Python2+tensorflow,或者重写Pool.map部分的代码。