Questions tagged [keras-tuner]
166 questions
0
votes
2 answers
i got runtime error on use of Random Search Keras Tuner for optimization
I use Keras tuner for hyperparameter tuning on digit recognizer datasets but got error
first I made build method in CNNHyperModel class for hyper parameter tuning
second I use Conv2D , MaxPooling2D, Dropout then neural network
I already imported…

GursimranSe
- 99
- 2
- 8
0
votes
1 answer
Tensorflow2 Keras Tuning both units and activation function
I am trying to setup a Keras tuner to simultaneously tune both the number of layers and the activation function. The network attempts to warp a 2D function into another 2D function. I keep getting the error:
ValueError: Unknown activation function:…

The Dude
- 661
- 2
- 11
- 20
0
votes
1 answer
I need some help setting up Keras-Tuner with Celeb_a dataset using Spyder
I'm trying to come up with a way to use Keras-Tuner to auto-identify the best parameters for my CNN. I am using Celeb_a dataset
I tried a similar project where I used fashion_mnist and this worked perfectly but my experience with python isn't enough…

Jean Camargo
- 340
- 3
- 17
0
votes
1 answer
Keras-Tuner RuntimeError
I'm getting following error and I'm not able to figure out why:
RuntimeError: Model-building function did not return a valid Keras Model instance, found (,…

Krishnang K Dalal
- 2,322
- 9
- 34
- 55
0
votes
1 answer
Custom Traing Loop with multiple model pass through
Dear stackoverflow members,
I am currently trying to implement my own keras tuner training loop. In this loop I want to pass the input variable multiple times through the model in example:
Y = Startvalue
for i in range(x):
Y = model(Y)
I want to…

Christian Pommer
- 31
- 2
0
votes
0 answers
Python Keras Tuner. How to make previous layer has always more neurons than next layer?
is there any way for generated layers to make that previous layer has always more neurons than next layer?
I have example code:
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Flatten, InputLayer
from…

albert828
- 50
- 6
0
votes
2 answers
Error when importing kerastuner : It seems that scikit-learn has not been built correctly
I try to import Kerastuner but it shows
It seems that scikit-learn has not been built correctly.
If you have installed scikit-learn from source, please do not forget
to build the package before using it: run `python setup.py install` or
`make` in…

aryanknp
- 1,135
- 2
- 8
- 21
0
votes
1 answer
Anaconda install keras-tuner in tensorflow environment
I am using Anaconda 3 and would like to install keras-tuner in the tensorflow environment.
I've tried
conda install -c conda-forge keras-tuner
in the Anaconda Prompt (see https://anaconda.org/conda-forge/keras-tuner) which worked fine. However, the…

Michael
- 357
- 1
- 13
0
votes
1 answer
RuntimeError: Too many failed attempts to build
I want to use Keras tuner to tune model hyperparameter using the following code that first creates the class to make the optimization as following
model = keras.Sequential()
…

Adi Yadav
- 1
- 1
0
votes
1 answer
Kerastunner distributed tunning - how to tell to chief that the search is complete
I would like to use Kerastuner distributed tunning and have followed the details outlined in https://keras-team.github.io/keras-tuner/tutorials/distributed-tuning/. However, all my worker nodes finish gracefully while my chief process remains…

Pooria
- 780
- 1
- 8
- 17
-1
votes
1 answer
Understanding Keras Tuner
I am trying to understand the use of Keras tuner in obtaining optimal value of hyperparameters for a simple MLP model. The code that I am using is as follows:
def build_model2(hp):
model = tf.keras.Sequential()
for i in…

A. Gehani
- 83
- 7
-1
votes
1 answer
Get Second/Third Best Hyperparameters for comparison (keras tuner)
i want to ask about keras tuner method. I know that get_best_hyperparameters() return the value of the best hyperparameters. How about a method to return the second/third/etc best hyperparameters. Is there any other method to use to get their…

heyhofriend
- 3
- 2
-1
votes
2 answers
How and where can I check Keras Tuner output?
I have executed the Keras tuner, saw the output on the console, and then closed the console.
Now, I want to see the output again.
Where can I see it from, and how?

user366312
- 16,949
- 65
- 235
- 452
-1
votes
1 answer
Should shuffle be set to True during Keras Tuner?
I am using Keras Tuner to hypertune my model. I am setting the parameter value “validation_split = 0.2” in the search() call. Does it still make sense to pass “shuffle = True” or is that redundant / counter-productive?
tuner = RandomSearch(
…

Asim Raja
- 39
- 1
- 6
-1
votes
1 answer
keras-tuner throws AttributeError: 'HyperParameters' object has no attribute 'shape'
I have been trying to use Keras tuner for a Keras model built by my collegues (apologies, I am a pytorch user) and when I apply Keras tuner to this model I get AttributeError: 'HyperParameters' object has no attribute 'shape'
def my_function(hp,…

JohnJ
- 6,736
- 13
- 49
- 82