|
Define
| ||
|
Define
| ||
| Define search space for hyperparameters θ | ||
|
Define objective function
| ||
| Initialize , | ||
|
while
| ||
| Train model with hyperparameters θ for E epochs | ||
| Implement early stopping based on | ||
| Update hyperparameters θ using Bayesian optimization | ||
|
Update
| ||
|
| ||
| end while | ||
|
Train with optimal hyperparameters
| ||
|
Save the model with the best hyperparameters
|