I am developing a FNN with tensorflow and I am trying to tune the hyperparameters with keras-tuner. But whenever I want to execute the code I have this error : AttributeError: ‘NoneType’ object has no attribute ‘File’.
I changed my code with an example I found on tensorflow website to see and I still have the same issue. https://www.tensorflow.org/tutorials/keras/keras_tuner
By the way I am using Visual Studio Code with Python 3.10.12, keras 3.3.3, keras-tuner 1.4.7 and tensorflow 2.16.1
The error seems to occur when calling tuner.search and during the first epoch.
Would anyone know how to correct this ?
Here is the code I am trying to run by the way
enter image description here
I tried many things to solve the problem like testing with really simple networks and even checking the permissions to write for the files but everything seems ok to be. Maybe it is some compatibility issue ?`
Yass ‘Kyasz’ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.