Git Product home page Git Product logo

fair-pgrank's People

Stargazers

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

Watchers

 avatar  avatar

fair-pgrank's Issues

Some errors occur when running the code

Hello ashudeep,
Thank you for your implementation and I am very interested in your work. When I run the code on another dataset, it occurs that

Traceback (most recent call last):
File "train_amazon_dataset.py", line 608, in
args=args)
File "train_amazon_dataset.py", line 244, in on_policy_training
args=args)
File "train_amazon_dataset.py", line 58, in log_and_print
args=args)
File "/raid/user_storage/host/Fair-PGRank/evaluation.py", line 194, in evaluate_model
feats, rel = convert_vars_to_gpu([feats, rel], gpu_id)
File "/raid/user_storage/host/Fair-PGRank/models.py", line 117, in convert_vars_to_gpu
return [var.to(device) for var in varlist]
File "/raid/user_storage/host/Fair-PGRank/models.py", line 117, in
return [var.to(device) for var in varlist]
AttributeError: 'numpy.ndarray' object has no attribute 'to'

could you give me some advice to solve it?
Thank yo so much!
Best,
Xiuling

How do you calculate the individual fairness based on exposure from implicit feedback?

Hello ashudeep,

I read your paper
https://papers.nips.cc/paper/8782-policy-learning-for-fairness-in-ranking
and I am impressed with your idea and would like to do research based on this paper.
However, there are two things I don't understand after reading your paper.

  1. When calculating the fairness of individual i, I think the following formula is used.
    exposure (i) / merit (i)
    But how do you calculate if the denominator merit (i) is 0 in implicit feedback?

  2. Should fairness be calculated against the overall ranking?
    In general, people will use the top k(<<n) rankings for n items.
    Do you need to calculate group fairness for all n items, not just top k?
    In other words, is it a fair ranking if groups A and B have the following for the items in top k only?
    group exposure(A) / group merit(A)
    = group exposure(B) / group merit(B)

When I read your paper, it seems to me that you are doing the math for every item...

Thank you

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.