Error during RandomSearch for hyperparameter tuning using tensorflow

No module named ‘keras_core.src’
Traceback (most recent call last):
File “”, line 4, in
File “/home/datafotis/anaconda3/lib/python3.7/site-packages/keras_tuner/init.py”, line 8, in
from keras_tuner import applications
File “/home/datafotis/anaconda3/lib/python3.7/site-packages/keras_tuner/applications/init.py”, line 8, in
from keras_tuner.src.applications.augment import HyperImageAugment
File “/home/datafotis/anaconda3/lib/python3.7/site-packages/keras_tuner/src/init.py”, line 16, in
from keras_tuner.src import applications
File “/home/datafotis/anaconda3/lib/python3.7/site-packages/keras_tuner/src/applications/init.py”, line 16, in
from keras_tuner.src.applications.augment import HyperImageAugment
File “/home/datafotis/anaconda3/lib/python3.7/site-packages/keras_tuner/src/applications/augment.py”, line 17, in
from keras_tuner.src.backend import keras
File “/home/datafotis/anaconda3/lib/python3.7/site-packages/keras_tuner/src/backend/init.py”, line 30, in
from keras_tuner.src.backend import ops
File “/home/datafotis/anaconda3/lib/python3.7/site-packages/keras_tuner/src/backend/ops.py”, line 22, in
from keras_core.src.backend.tensorflow import * # noqa: F403, F401
ModuleNotFoundError: No module named ‘keras_core.src’

I am getting this error. Please help

Hi,

please send us an example workflow and/or tell which nodes you use and which KNIME Analytics Platform version and on which OS

Steffen

1 Like

12_train_modelling_python.knwf (3.1 MB)

Please the sample workflow above.
KNIME version 4.7.7
OS version Ubuntu 22.04.3 LTS

There are no details about the Python environment in that workflow, and I suppose that is the issue.

Why are you using that exact node? When you asked for help about DL, Benjamin assumed in your previous forum post, that you know how to use Deep Learning within KNIME.

Please familiarize yourself with the setup of setting up the environments and how to use the Deep Learning extensions (and not the extension you used). Here is an article from @mlauber71 for a correct setup (which I believe is missing):

And if you need more information about setting the environments up:

Does that help?
Steffen

2 Likes