Skip to content

Support for TensorFlow Keras#31

Open
amaiya wants to merge 9 commits intoeli5-org:masterfrom
amaiya:master
Open

Support for TensorFlow Keras#31
amaiya wants to merge 9 commits intoeli5-org:masterfrom
amaiya:master

Conversation

@amaiya
Copy link

@amaiya amaiya commented Aug 1, 2022

The existing eli5 release causes problems when tf.keras is used instead of keras. When the user adds the following environment variable, keras will be imported from TensorFlow:

import os
os.environ['TF_KERAS'] == "1"

Otherwise, keras is imported normally.

Additional changes were made to support tensorflow>=2.9 and scipy==1.9 (which was just released a couple of days ago).

@lopuhin
Copy link
Contributor

lopuhin commented Mar 30, 2025

Thanks a lot @amaiya , scikit-learn compatibility was fixed in #48 , but the TF + Keras fixes were not implemented yet, your PR is going to be extremely helpful here, I'll start testing the changes.

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.

2 participants