autokeras: ImportError: cannot import name 'preprocessing' from 'tensorflow.keras.layers.experimental'

I tried to run Auotokeras and was hit with the error message upon import autokeras:

ImportError: cannot import name 'preprocessing' from 'tensorflow.keras.layers.experimental'

I think this is due to some version mismatch, - so I suggest that the documentation should include the needed tensorlfow / keras versions.

I am currently on:

Keras: 2.2.4 Tensorflow: 1.15.0 OS: Windows 10

Thank you for your help

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

@jcrodriguez1989 Yeah, I will add it to the documentation later today. Thx

@kevinkit We are actually using the tf.keras (Keras inside TensorFlow package) instead of the standalone Keras. So you don’t need to worry about the installation of Keras as long as you installed the correct version of TensorFlow. Thx

Hi @kevinkit , the minimum tensorflow requirement is 2.1.0 . It would be great if this requirement could be documented.