-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fnn and bnn model both get print out like "Loading fairness results failed!" #260
Comments
Hi @littlebeanbean7 @Hamedloghmani can you please look into this? We need to make it in a way that if fairness pipeline is not needed, nothing related to it also involves, even the packages. |
Hello @hosseinfani , Thanks for letting me know.
Sure, I will look into it and take care of it.
|
Good morning @hosseinfani thank you for kindly help! I checked out to cikm22 branch, when I run python -u main.py -data ../data/raw/dblp/toy.dblp.v12.json -domain dblp -model fnn, I get another error copied below. As a user outside of your lab, my need is: one stable branch with sample code showing how to run the function. The sample code needs to be updated and suitable for the stable branch. Thank you very much! Building pytrec_eval input for 5 instances ... |
Hi @hosseinfani , @littlebeanbean7 I pushed some changes that lets OpeNTF run without fairness arguments. As I checked, it works smoothly now but do not hesitate to let me know if the issues persist.
'cmd': ['train', 'test', 'eval'], # 'train', 'test', 'eval', 'plot', 'agg', 'fair'
I hope my explanation helps. |
Hello @Hamedloghmani @hosseinfani, thank you and the team so much for helping to fix the issue! I pulled the latest code and I confirm that using the "main" branch, issue #260 and #263 are resolved -- I don't get 'labels' error and do not get "Loading fairness results failed!" message now. Would your team please also look into issues #259, #261, #262? Thank you! |
Hello,
I am running the first example on "quick start": python -u main.py -data ../data/raw/dblp/toy.dblp.v12.json -domain dblp -model fnn bnn -fairness det_greedy -attribute popularity.
It seems to be able to run. But I notice that in the printout there are many "Loading fairness results failed!". Below I paste the last part of the printout. Could you please explain whether this warning "Loading fairness results failed!" is expected, Or does it indicate that my run is unsuccessful? Thank you!
Reranking for the baseline ../output/toy.dblp.v12.json/bnn/t31.s10.m13.l[128].lr0.1.b128.e5.nns3.nsunigram_b.s1.lossSL/t31.s10.m13.l[128].lr0.1.b128.e5.nns3.nsunigram_b.s1.lossSL/f1.test.pred ...
Loading popularity labels ...
Loading reranking results ...
100%|████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00, 205603.14it/s]
Loading fairness evaluation results before and after reranking ...
Loading fairness results failed! Evaluating fairness metric {'ndkl'} ...
100%|█████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00, 19152.07it/s]
Loading utility metric evaluation results before and after reranking ...
Pipeline for the baseline ../output/toy.dblp.v12.json/bnn/t31.s10.m13.l[128].lr0.1.b128.e5.nns3.nsunigram_b.s1.lossSL/t31.s10.m13.l[128].lr0.1.b128.e5.nns3.nsunigram_b.s1.lossSL/f1.test.pred completed by <_MainProcess name='MainProcess' parent=None started>! 0.007432222366333008
####################################################################################################
####################################################################################################
Reranking for the baseline ../output/toy.dblp.v12.json/bnn/t31.s10.m13.l[128].lr0.1.b128.e5.nns3.nsunigram_b.s1.lossSL/t31.s10.m13.l[128].lr0.1.b128.e5.nns3.nsunigram_b.s1.lossSL/f2.test.pred ...
Loading popularity labels ...
Loading reranking results ...
100%|████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00, 209715.20it/s]
Loading fairness evaluation results before and after reranking ...
Loading fairness results failed! Evaluating fairness metric {'ndkl'} ...
100%|█████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00, 19328.59it/s]
Loading utility metric evaluation results before and after reranking ...
Pipeline for the baseline ../output/toy.dblp.v12.json/bnn/t31.s10.m13.l[128].lr0.1.b128.e5.nns3.nsunigram_b.s1.lossSL/t31.s10.m13.l[128].lr0.1.b128.e5.nns3.nsunigram_b.s1.lossSL/f2.test.pred completed by <_MainProcess name='MainProcess' parent=None started>! 0.0077745914459228516
The text was updated successfully, but these errors were encountered: