Optuna is a generic-purpose optimizer for hyperparameters. It combines a diversity of modern search algorithms to optimize models in a black-box fashion, namely defining hyperparameters to optimize and an objective/cost function. Check the tutorials for further information.