keras-team / autokeras

AutoML library for deep learning
http://autokeras.com/
Apache License 2.0
9.1k stars 1.4k forks source link

Bug: #1892

Closed Viking78Bot closed 9 months ago

Viking78Bot commented 9 months ago

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

donkikos commented 9 months ago

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

Viking78Bot commented 9 months ago

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

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

haifeng-jin commented 9 months ago

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

haifeng-jin commented 9 months ago

It is fixed in keras_tuner 1.4.3