ModuleNotFoundError: No module named 'tensorflow.keras.wrappers' how to solve

86 views Asked by At

enter image description here

The module keras.wrappershas been removed in tensorflow 2.15, so its normal you don't find it.

You have the last version of adapt (0.4.4) so the bug doesn't come from the adapt library.

Your issue comes from this import :

from tensorflow.keras.wrappers.scikit_learn import KerasRegressor

You should replace this line with:

from scikeras.wrappers import KerasRegressor

we try this but yet it didnt happen

0

There are 0 answers