We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when import autokeras
import autokeras as ak
Code for reproducing the bug:
https://colab.research.google.com/github/keras-team/autokeras/blob/master/docs/ipynb/structured_data_classification.ipynb
Include the details about the versions of:
in <cell line: 4>() 2 import tensorflow as tf 3 ----> 4 import autokeras as ak
7 frames /usr/local/lib/python3.10/dist-packages/autokeras/keras_layers.py in 18 from tensorflow import nest 19 from tensorflow.keras import layers ---> 20 from tensorflow.keras.layers.experimental import preprocessing 21 22 from autokeras.utils import data_utils
ModuleNotFoundError: No module named 'tensorflow.keras.layers.experimental
The text was updated successfully, but these errors were encountered:
I have the same problem
Sorry, something went wrong.
SaMEEEEEEEE
same
The experimental bit has been rendered redundant. Use tf.keras.layers import RandomFlip instead. https://www.tensorflow.org/api_docs/python/tf/keras/layers/RandomFlip
If you need the full preprocessing.. you can use from tensorflow.keras.layers import *
That should work: didnt try it tho.
from tensorflow.keras.layers import * The above code works for me
No branches or pull requests
Bug Description
when import autokeras
import autokeras as ak
Bug Reproduction
Code for reproducing the bug:
https://colab.research.google.com/github/keras-team/autokeras/blob/master/docs/ipynb/structured_data_classification.ipynb
Setup Details
Include the details about the versions of:
Additional context
in <cell line: 4>()
2 import tensorflow as tf
3
----> 4 import autokeras as ak
7 frames
/usr/local/lib/python3.10/dist-packages/autokeras/keras_layers.py in
18 from tensorflow import nest
19 from tensorflow.keras import layers
---> 20 from tensorflow.keras.layers.experimental import preprocessing
21
22 from autokeras.utils import data_utils
ModuleNotFoundError: No module named 'tensorflow.keras.layers.experimental
The text was updated successfully, but these errors were encountered: