Giter VIP home page Giter VIP logo

fairness-in-cold-start-recommendation's People

Contributors

zziwei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fairness-in-cold-start-recommendation's Issues

Unable to run either model due to SciPy sparse matrix errors

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.

paper files

find no paper searching by google, any link to the paper

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.