RuntimeError: Too many failed attempts to build model. | KeyError: 'structured_data_block_2/normalize'
See original GitHub issueCode :
reg = ak.StructuredDataRegressor(overwrite=True,max_trials=3)
reg.fit(train_file_path,'next_close',epochs=10)
predicted_y = reg.predict(test_file_path)
print(reg.evaluate(test_file_path, 'next_close'))
Error :
Traceback (most recent call last):
File "/home/hemang/.local/lib/python3.8/site-packages/kerastuner/engine/hypermodel.py", line 104, in build
model = self.hypermodel.build(hp)
File "/home/hemang/.local/lib/python3.8/site-packages/kerastuner/engine/hypermodel.py", line 64, in _build_wrapper
return self._build(hp, *args, **kwargs)
File "/home/hemang/.local/lib/python3.8/site-packages/autokeras/graph.py", line 250, in build
outputs = block.build(hp, inputs=temp_inputs)
File "/home/hemang/.local/lib/python3.8/site-packages/autokeras/engine/block.py", line 38, in _build_wrapper
return super()._build_wrapper(hp, *args, **kwargs)
File "/home/hemang/.local/lib/python3.8/site-packages/kerastuner/engine/hypermodel.py", line 64, in _build_wrapper
return self._build(hp, *args, **kwargs)
File "/home/hemang/.local/lib/python3.8/site-packages/autokeras/blocks/wrapper.py", line 251, in build
if self.normalize is None and hp.Boolean(NORMALIZE):
File "/home/hemang/.local/lib/python3.8/site-packages/kerastuner/engine/hyperparameters.py", line 814, in Boolean
return self._retrieve(hp)
File "/home/hemang/.local/lib/python3.8/site-packages/kerastuner/engine/hyperparameters.py", line 625, in _retrieve
return self.values[hp.name]
KeyError: 'structured_data_block_2/normalize'
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Too many failed attempts to build model. keras tuner - Stack ...
RuntimeError : Too many failed attempts to build model. keras tuner ; class RegressionHyperModel (HyperModel): ; 'tanh', 'sigmoid'], default='relu' ...
Read more >RuntimeError: Too many failed attempts to build model.
RuntimeError : Too many failed attempts to build model. | KeyError: 'structured_data_block_2/normalize'
Read more >Too many failed attempts to build model. keras tuner
i want to use keras tuner to tune model hyper parameter using the following code that first create the class to make the...
Read more >Keras Tuner _ Hello World - Kaggle
Int('units_' + str(i), 32, 512, 32), activation='relu')) model.add(layers. ... 116 continue 117 RuntimeError: Too many failed attempts to build model.
Read more >KerasTuner KeyError issue.ipynb - Colaboratory - Google Colab
same error with this alternative code if the script is run twice ... RuntimeError: Too many failed attempts to build model. Search Stack...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hemangjoshi37a change
overwrite=True
tooverwrite=False
. It should works.I got the same error, even when i normalize the data before using the fit function.
The traceback:
and the key error
The code I used for the call was: