zziwei / fairness-in-cold-start-recommendation Goto Github PK
View Code? Open in Web Editor NEWCode for our SIGIR 2021 paper :'Fairness among New Items in Cold Start Recommender Systems'
Code for our SIGIR 2021 paper :'Fairness among New Items in Cold Start Recommender Systems'
find no paper searching by google, any link to the paper
Hello, I was trying to run the Gen
and Scale
variants of the model, but I kept getting the following error due to the evaluation portion of the code:
File "main.py", line 239, in <module>
main()
File "main.py", line 126, in main
recall_k=recall_at, eval_data=cold_test_eval, R=R)
File "/<path>/Fairness-in-Cold-Start-Recommendation/Scale/utils.py", line 98, in batch_eval_recall
z = y.multiply(x)
File "/<path>/anaconda2/envs/fairness_recs_tf1/lib/python3.6/site-packages/scipy/sparse/base.py", line 336, in multiply
return self.tocsr().multiply(other)
File "/home/athtrch/anaconda2/envs/fairness_recs_tf1/lib/python3.6/site-packages/scipy/sparse/compressed.py", line 373, in multiply
other = self.__class__(other)
File "/<path>/anaconda2/envs/fairness_recs_tf1/lib/python3.6/site-packages/scipy/sparse/compressed.py", line 34, in __init__
arg1 = arg1.asformat(self.format)
File "/<path>/anaconda2/envs/fairness_recs_tf1/lib/python3.6/site-packages/scipy/sparse/base.py", line 322, in asformat
return convert_method(copy=copy)
File "/<path>/anaconda2/envs/fairness_recs_tf1/lib/python3.6/site-packages/scipy/sparse/lil.py", line 462, in tocsr
_csparsetools.lil_get_lengths(self.rows, indptr[1:])
File "_csparsetools.pyx", line 109, in scipy.sparse._csparsetools.lil_get_lengths
I presume the error occurs due to the following lines (90-96) in utils.py
under batch_eval_recall:
preds_k = preds_all[:, :at_k]
at_k = preds_k.shape[1]
y = eval_data.R_test_inf
x = scipy.sparse.lil_matrix(y.shape)
x.rows = preds_k
x.data = np.ones_like(preds_k)
Where data from a smaller matrix is assigned to a bigger one. This causes the multiply to fail since perhaps the data is stored in a different layout under LIL matrices. Would you be able to provide the SciPy version for your code since I'm having trouble getting it to work?
Thank you.
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.