Skip to content

Commit

Permalink
Add warning message about TensorFlow compatibility to docs (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
elisno authored Mar 19, 2024
1 parent 2f2bc1f commit 5bc3337
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cleanlab/models/keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@
This wrapper class is only fully compatible with ``tensorflow<2.11``, if using ``tensorflow>=2.11``,
please replace your Optimizer class with the legacy Optimizer `here <https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/legacy/Optimizer>`_.
.. warning::
For those on TensorFlow version 2.16 or higher, please note that direct compatibility is not yet fully established.
We are actively working to extend support to these newer versions.
In the interim, users are advised to use TensorFlow versions up to 2.15 to ensure stability and maintain compatibility.
This can be done by specifying the TensorFlow version in your package manager, for example:
.. code-block::
pip install tensorflow<2.16
This approach ensures that you can continue utilizing the full functionality of this wrapper class until an update accommodating newer TensorFlow versions is released.
Tips:
* If this class lacks certain functionality, you can alternatively try `scikeras <https://github.com/adriangb/scikeras>`_.
Expand Down

0 comments on commit 5bc3337

Please sign in to comment.