dsgibbons/shap

Use tensorflow v1 compatible optimizers

simonangerbauer opened this issue · 0 comments

All tests using tensorflow are still using the tensorflow v1 compatibility api.

The optimizers currently in use (tensorflow.optimizers.AdaDelta and tensorflow.optimizers.SGD) only support tensorflow 2.x. The 1.x compatible versions have been moved to tensorflow.optimizers.legacy. See tensorflow 2.11.0 release notes.

Ideally, we would upgrade everything to tensorflow 2.x, but that seems too much work for now.
To make the tests run successfully it should be sufficient to use the 1.x compatible versions of AdaDelta and SGD.

Subtask of #4