keras-team/autokeras

Bug:

Viking78Bot opened this issue · 4 comments

Title: Error importing autokeras in Google Colab

Description:

I am getting an error when trying to import autokeras in Google Colab:
import autokeras as ak

AttributeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 import autokeras as ak

4 frames
/usr/local/lib/python3.10/dist-packages/autokeras/engine/tuner.py in
28
29
---> 30 class AutoTuner(keras_tuner.engine.tuner.Tuner):
31 """A Tuner class based on KerasTuner for AutoKeras.
32

AttributeError: module 'keras_tuner.engine' has no attribute 'tuner'

Additional information:

print(sys.version)
3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]

print(kt.version)
1.4.0

print(sklearn.version)
1.2.2

print(np.version)
1.23.5

print(pd.version)
1.5.3

print(tf.version)
2.13.0

This is affecting my setup too. Is there any solution?

Здравствуйте Тигран, говорят помогает

!pip install autokeras
!pip uninstall keras-tuner
!pip install keras-tuner==1.3.5

I will need to do another release in keras_tuner to fix it.

It is fixed in keras_tuner 1.4.3