Coder Social home page Coder Social logo

algofairness / fairness-comparison Goto Github PK

View Code? Open in Web Editor NEW
158.0 17.0 50.0 338.86 MB

Comparing fairness-aware machine learning techniques.

License: Other

Python 15.43% Shell 0.13% HTML 84.21% R 0.01% CSS 0.01% JavaScript 0.22% Makefile 0.01%

fairness-comparison's Issues

UndefinedMetricWarning and run parameters {} failed

using python 3.7 on Windows 10. installed with pip3 utilized

from fairness.benchmark import run
Available algorithms:
SVM
GaussianNB
LR
DecisionTree
Kamishima
Calders
ZafarBaseline
ZafarFairness
ZafarAccuracy
Kamishima-accuracy
Kamishima-DIavgall
Feldman-SVM
Feldman-GaussianNB
Feldman-LR
Feldman-DecisionTree
Feldman-SVM-DIavgall
Feldman-SVM-accuracy
Feldman-GaussianNB-DIavgall
Feldman-GaussianNB-accuracy

run()
Datasets: '['ricci', 'adult', 'german', 'propublica-recidivism', 'propublica-violent-recidivism']'

Evaluating dataset:ricci
Sensitive attribute:Race
Algorithm: SVM
supported types: {'numerical', 'numerical-binsensitive'}
C:\Users\kevin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\metrics_classification.py:1221: UndefinedMetricWarning: Recall is ill-defined and being set to 0.0 due to no true samples. Use zero_division parameter to control this behavior.
_warn_prf(average, modifier, msg_start, len(result))
C:\Users\kevin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\metrics_classification.py:1221: UndefinedMetricWarning: Recall is ill-defined and being set to 0.0 due to no true samples. Use zero_division parameter to control this behavior.


C:\Users\kevin\Documents\GitHub\fairness-comparison-master\fairness\algorithms\kamishima\KamishimaAlgorithm.py:99: UserWarning: loadtxt: Empty input file: "C:\Users\kevin\AppData\Local\Temp\tmps24_t_kk"
m = numpy.loadtxt(output_name)
run for parameters {} failed: too many indices for array
C:\Users\kevin\Documents\GitHub\fairness-comparison-master\fairness\algorithms\kamishima\KamishimaAlgorithm.py:99: UserWarning: loadtxt: Empty input file: "C:\Users\kevin\AppData\Local\Temp\tmp86i67yum"
m = numpy.loadtxt(output_name)
run for parameters {} failed: too many indices for array
C:\Users\kevin\Documents\GitHub\fairness-comparison-master\fairness\algorithms\kamishima\KamishimaAlgorithm.py:99: UserWarning: loadtxt: Empty input file: "C:\Users\kevin\AppData\Local\Temp\tmp3q3uqt1g"
m = numpy.loadtxt(output_name)
run for parameters {} failed: too many indices for array

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.