<s> '''<STR_LIT>''' <EOL> import setup_logger <EOL> import GPy <EOL> from robo . models . gpy_model import GPyModel <EOL> from robo . acquisition . ei import EI <EOL> from robo . maximizers . cmaes import CMAES <EOL> from robo . task . synthetic_functions . branin import Branin <EOL> from robo . solver . bayesian_optimization import BayesianOptimization <EOL> branin = Branin ( ) <EOL> kernel = GPy . kern . Matern52 ( input_dim = branin . n_dims ) <EOL> model = GPyModel ( kernel ) <EOL> acquisition_func = EI ( model , <EOL> X_upper = branin . X_upper , <EOL> X_lower = branin . X_lower , <EOL> par = <NUM_LIT:0.1> ) <EOL> maximizer = CMAES ( acquisition_func , branin . X_lower , branin . X_upper ) <EOL> bo = BayesianOptimization ( acquisition_func = acquisition_func , <EOL> model = model , <EOL> maximize_func = maximizer , <EOL> task = branin ) <EOL> bo . run ( <NUM_LIT:10> ) </s>
