-
Notifications
You must be signed in to change notification settings - Fork 249
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
Initial TF session management #120
Conversation
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
==========================================
+ Coverage 85.42% 86.09% +0.67%
==========================================
Files 30 32 +2
Lines 2580 2647 +67
==========================================
+ Hits 2204 2279 +75
+ Misses 376 368 -8
Continue to review full report at Codecov.
|
This may be solved by conditionally importing either |
Update:
|
Remaining things to land this: CEM and CFProto example notebooks and documentation needs updating @arnaudvl
|
After chatting to @arnaudvl it makes sense that a black-box function which is a keras model in disguise (i.e. via |
The only thing left to do is to produce a good example for the CEM MNIST notebook - this proves to be quite tricky as the algorithm is quite sensitive to the trained model and hyperparameters. Other than that, the following (across CEM, CounterFactual and CounterFactualProto) are supported:
|
We want to move the TF session management internally to the explainers that use TF, this is a first attempt taking
CounterFactual
as an example.The main difficulty is that with
tf.keras
this works out of the box (tests passing etc.), but usingkeras
is throwingFailedPreconditionError
, so there is some incompatibility with initialization betweentf.keras
andkeras
.