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

UndefinedMetricWarning and run parameters {} failed #7

Open
kevinoden opened this issue Jul 16, 2020 · 1 comment
Open

UndefinedMetricWarning and run parameters {} failed #7

kevinoden opened this issue Jul 16, 2020 · 1 comment

Comments

@kevinoden
Copy link

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

@YXYY0807
Copy link

hi, have you work it out? I have the same problem as you now if you have fixed it plz contact me really really thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants