You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to optimize the hyperparameters of a pre-trained model (based on BERT) with TensorFlow 2.15.
A few months ago, this code was working for me, but now it is not working.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
[<ipython-input-30-600d78f7bf50>](https://localhost:8080/#) in <cell line: 3>()
1 from kerastuner.tuners import RandomSearch
2
----> 3 tuner = RandomSearch(
4 build_model,
5 objective='val_accuracy',
8 frames
[/usr/local/lib/python3.10/dist-packages/tf_keras/src/optimizers/__init__.py](https://localhost:8080/#) in get(identifier, **kwargs)
332 )
333 else:
--> 334 raise ValueError(
335 f"Could not interpret optimizer identifier: {identifier}"
336 )
ValueError: Could not interpret optimizer identifier: <keras.src.optimizers.adam.Adam object at 0x7ed054b91030>
Is there any solution for this problem?
In the transformer library, something similar happened to me, and the (temporary) solution is to set an environment variable.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everybody.
I am trying to optimize the hyperparameters of a pre-trained model (based on BERT) with TensorFlow 2.15.
A few months ago, this code was working for me, but now it is not working.
I get the following error messages:
Is there any solution for this problem?
In the
transformer
library, something similar happened to me, and the (temporary) solution is to set an environment variable.Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions