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

fix deprecation warning in standard dataset #109

Closed
nrkarthikeyan opened this issue Sep 18, 2019 · 4 comments · Fixed by #115
Closed

fix deprecation warning in standard dataset #109

nrkarthikeyan opened this issue Sep 18, 2019 · 4 comments · Fixed by #115

Comments

@nrkarthikeyan
Copy link
Collaborator

WARNING:root:Missing Data: 3620 rows removed from AdultDataset.
.../python3.7/site-packages/aif360/datasets/standard_dataset.py:121: FutureWarning: outer method for ufunc <ufunc 'equal'> is not implemented on pandas objects. Returning an ndarray, but in the future this will raise a 'NotImplementedError'. Consider explicitly converting the Series to an array with '.array' first.
priv = np.logical_or.reduce(np.equal.outer(vals, df[attr]))

@autoih
Copy link
Contributor

autoih commented Oct 3, 2019

Hi @nrkarthikeyan, can you share how to reproduce the warring message?

@nrkarthikeyan
Copy link
Collaborator Author

Hi @autoih, the following steps work in my machine

conda create -n myenv python=3.7
conda activate myenv
pip install aif360

and from inside python:

import aif360
from aif360.datasets import AdultDataset
data = AdultDataset()

This is the message I get

WARNING:root:Missing Data: 3620 rows removed from AdultDataset.
/Users/knatesa/anaconda3/envs/myenv/lib/python3.7/site-packages/aif360/datasets/standard_dataset.py:121: FutureWarning: outer method for ufunc <ufunc 'equal'> is not implemented on pandas objects. Returning an ndarray, but in the future this will raise a 'NotImplementedError'. Consider explicitly converting the Series to an array with '.array' first.
priv = np.logical_or.reduce(np.equal.outer(vals, df[attr]))
/Users/knatesa/anaconda3/envs/myenv/lib/python3.7/site-packages/aif360/datasets/standard_dataset.py:142: FutureWarning: outer method for ufunc <ufunc 'equal'> is not implemented on pandas objects. Returning an ndarray, but in the future this will raise a 'NotImplementedError'. Consider explicitly converting the Series to an array with '.array' first.
df[label_name]))

@RachitBhargava99
Copy link

Custom datasets cannot be used - NotImplementedError being raised.

@RachitBhargava99
Copy link

RachitBhargava99 commented Apr 26, 2020

Nvm - packages on PyPi are just a little outdated.

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

Successfully merging a pull request may close this issue.

3 participants