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

Optional tempeh, conditional imports #338

Merged

Conversation

DanielRyszkaIBM
Copy link
Contributor

@DanielRyszkaIBM DanielRyszkaIBM commented Aug 25, 2022

The following changes are introduced:

  • making tempeh optional
  • change imports from sklearn deprecation class
  • conditional imports for libraries that are installed from extras

Signed-off-by: DanielRyszkaIBM <daniel.ryszka@pl.ibm.com>
Signed-off-by: DanielRyszkaIBM <daniel.ryszka@pl.ibm.com>
Signed-off-by: DanielRyszkaIBM <daniel.ryszka@pl.ibm.com>
Signed-off-by: DanielRyszkaIBM <daniel.ryszka@pl.ibm.com>
@DanielRyszkaIBM DanielRyszkaIBM marked this pull request as ready for review August 25, 2022 13:25
…d-imports

# Conflicts:
#	aif360/sklearn/datasets/__init__.py
#	setup.py
Copy link
Collaborator

@hoffmansc hoffmansc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks very good overall! Eventually we should remove the tempeh dependency altogether and directly download the dataset from SEAPHE but this is totally fine for now.

I left a couple comments in the code. Also, can you add the import warnings for the aif360.sklearn.preprocessing algos (FairAdapt and LFR)?

setup.py Outdated Show resolved Hide resolved
aif360/sklearn/datasets/__init__.py Outdated Show resolved Hide resolved
Signed-off-by: DanielRyszkaIBM <daniel.ryszka@pl.ibm.com>
@hoffmansc hoffmansc linked an issue Aug 26, 2022 that may be closed by this pull request
@hoffmansc hoffmansc merged commit ee3ca19 into Trusted-AI:master Aug 26, 2022
Illia-Kryvoviaz pushed a commit to Illia-Kryvoviaz/AIF360 that referenced this pull request Jun 7, 2023
* Make tempeh optional + remove scipy upper bound
* Raise warnings if importing uninstalled packages
* Change import for deprecation class from sklearn
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 this pull request may close these issues.

sklearn.exceptions.deprecated seems to have moved
2 participants