Skip to content
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

feature/average_class_influence #2

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c535893
PPA output
rajkiran2190 Mar 5, 2017
9e5ae3b
fix
piotrm0 Mar 5, 2017
93da0bf
fix general-inf
piotrm0 Mar 5, 2017
7b8c9e0
Merged
Mar 8, 2017
b65e4b3
readme and arg reading fixes
piotrm0 Mar 8, 2017
be3fdb9
more command line options and todo notes
piotrm0 Mar 8, 2017
0ce1391
random seed for more things
piotrm0 Mar 20, 2017
7305c44
update notes related to random seed
piotrm0 Mar 20, 2017
18dc578
satisfying pylint
piotrm0 Mar 25, 2017
d653d77
doing some pylinting
piotrm0 Mar 27, 2017
252ec80
adding shapley test case
piotrm0 Mar 29, 2017
207bc3f
time commands fix
piotrm0 Mar 29, 2017
75e5c98
forgot something
piotrm0 Mar 29, 2017
853b343
fix things
piotrm0 Mar 29, 2017
fda8784
fixing plot show and output pdf options
rajkiran2190 Oct 4, 2017
5a2002f
fixing export_pdf
rajkiran2190 Oct 4, 2017
605482f
rajkiran/malware_specific
rajkiran2190 Oct 4, 2017
208d3ad
Merge pull request #1 from cmu-transparency/export_pdf_bug
piotrm0 Oct 5, 2017
fd291f1
adding average class influence measure
rajkiran2190 Nov 1, 2017
37db913
removing pdb import
rajkiran2190 Nov 1, 2017
db0c016
minor fix
kosonya Nov 15, 2017
57c2998
minor fix
kosonya Nov 15, 2017
c4ba1d8
feature variation plots
rajkiran2190 Nov 23, 2017
60dc5bb
issue with normalisation fix
rajkiran2190 Nov 23, 2017
e9aefc8
changing the output name
rajkiran2190 Nov 24, 2017
b47def8
changing debugs and file save names
rajkiran2190 Nov 24, 2017
9b13c1d
fixing the random state
rajkiran2190 Nov 24, 2017
b363ba4
restoring to default
rajkiran2190 Nov 29, 2017
dc34199
restoring to default
rajkiran2190 Nov 29, 2017
ad16a6d
Merge pull request #3 from cmu-transparency/feature/feature_variation
rajkiran2190 Nov 29, 2017
34ec3a6
merging master to this branch
rajkiran2190 Nov 29, 2017
fec2899
merging with develop
rajkiran2190 Nov 29, 2017
b75eaa5
trying to fix formatting
rajkiran2190 Nov 29, 2017
457d858
trying to fix formatting
rajkiran2190 Nov 29, 2017
0e1648c
adding plots for histograms
rajkiran2190 Dec 12, 2017
9026801
removing individual histograms
rajkiran2190 Dec 12, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
OS := $(shell uname)
ifeq ($(OS), Darwin)
TIME := /usr/bin/time -l
else
TIME := /usr/bin/time -v
endif

pylint: *.py
pylint -f parseable -j 4 *.py

test-shapley:
$(TIME) python qii.py -m shapley final.csv --show

test:
$(TIME) python qii.py -m average-unary-individual final.csv
$(TIME) python qii.py -m unary-individual final.csv
$(TIME) python qii.py -m discrim final.csv
$(TIME) python qii.py -m banzhaf final.csv
$(TIME) python qii.py -m shapley final.csv

clean:
rm -Rf *.pyc
rm -Rf *~
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@
QII Code originally from Datta-Sen-Zick Oakland'16

To try on the adult dataset run:
python qii.py adult --show-plot
'''python qii.py adult --show-plot'''

To see additional options:
Run python qii.py -h
Run '''python qii.py -h'''

Currently supported datasets:
adult : UCI Income dataset
iwpc : Warfarin dosage
nlsy97 : Arrest prediction from the NLSY 97

Currently supported measures:
discrim-inf : Influence on discrimination
average-local-inf : Average unary QII
general-inf : Influence on average classification
shapley : Shapley QII (use -i k) for kth individual
banzhaf : Banzhaf QII (use -i k) for kth individual

* adult : UCI Income dataset
* iwpc : Warfarin dosage
* nlsy97 : Arrest prediction from the NLSY 97

Currently supported measures:
* discrim : Unary QII on discrimination
* average-unary-individual : Average unary QII
* unary-individual : Unary QII on individual outcome (use -i k) for kth individual
* general-inf : Influence on average classification
* shapley : Shapley QII (use -i k) for kth individual
* banzhaf : Banzhaf QII (use -i k) for kth individual
Loading