keras-team / keras-tuner

A Hyperparameter Tuning Library for Keras
https://keras.io/keras_tuner/
Apache License 2.0
2.86k stars 396 forks source link

model.save(), comes the problem #670

Open Johnny-zbb opened 2 years ago

Johnny-zbb commented 2 years ago

When i use the keras tuner,after searching ; I can`t save the bestmodel, and comes this error: image image here is my tuner:

tuner = kt.BayesianOptimization(
    hypermodel=build_model,
    objective="val_loss",
    max_trials=300,
    alpha=0.0001,
    beta=2.6,
    seed=None,
    overwrite=True,
    hyperparameters=None,
    tune_new_entries=True,
    allow_new_entries=True,
    directory="my_dir",
    project_name="BayesianOptimization_ols_BN_std",
)