qcactus / cpr Goto Github PK
View Code? Open in Web Editor NEWTensorFlow implementation of our paper: Cross Pairwise Ranking for Unbiased Item Recommendation (WWW'22)
License: MIT License
TensorFlow implementation of our paper: Cross Pairwise Ranking for Unbiased Item Recommendation (WWW'22)
License: MIT License
First, thank you for sharing your work with the community!
I kindly ask if you could consider adding an open-source license to your repository for enabling others to reference your work.
Thank you for considering our request!
如题,谢谢~
data_preprocess中使了recq.tools.plot.degree_plot方法,但仓库中似乎没有找到plot.py文件
In the file cpr.py
, the code on line 38 is supposed to switch columns, but is, to my understanding, switching rows.
Line 38 in 782edb8
This is causing incorrect model behavior. According to equation (13) of the paper and line 7 of the pseudo-algorithm, the procedure should switch the first item of the tuple to the last positon of each tuple. Each row of i_list
seems to contain the concatenated embedding vectors of all idx + 2
items of the tuple. So its shape is (idx + 2)*embed_size
. Hence, we should be shifting the first embed_size
columns to the end.
To fix this issue, the code should be changed to switch the first embed_size
columns to the end instead of the first row.
This issue was discovered during testing of the cpr.py
file, and appears to be affecting model training. For validation, I tried to input a shifted item sequence directly and computed pos_scores
. They should have been identical to neg_scores
of the non-shifted sequence but they were not.
Apologies if I have misunderstood your code and there is no error. Please let me know if you require any additional information.
Hi, thanks for your excellent work, Is there pytorch version?
data_preprocess中使了recq.tools.plot.degree_plot方法,但仓库中似乎没有找到plot.py文件
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.