23 #include "testfunctions.hpp" 31 void display(
void ){ GLOBAL_MATPLOT.display(); }
32 void reshape(
int w,
int h ){ GLOBAL_MATPLOT.reshape(w,h); }
33 void idle(
void ) { glutPostRedisplay(); }
35 void mouse(
int button,
int state,
int x,
int y ){ GLOBAL_MATPLOT.mouse(button,state,x,y); }
36 void motion(
int x,
int y ){ GLOBAL_MATPLOT.motion(x,y); }
37 void passive(
int x,
int y ){ GLOBAL_MATPLOT.passivemotion(x,y); }
39 void keyboard(
unsigned char key,
int x,
int y)
41 GLOBAL_MATPLOT.keyboard(key, x, y);
44 GLOBAL_MATPLOT.toogleRUN();
48 GLOBAL_MATPLOT.setSTEP();
53 int main(
int nargs,
char *args[])
57 if(!bayesopt::utils::ParamLoader::load(args[1], par)){
58 std::cout <<
"ERROR: provided file \"" << args[1] <<
"\" does not exist" << std::endl;
63 par = initialize_parameters_to_default();
77 GLOBAL_MATPLOT.init(branin.get(),2);
80 sv(0) = 0.1239; sv(1) = 0.8183;
81 GLOBAL_MATPLOT.setSolution(sv);
83 sv(0) = 0.5428; sv(1) = 0.1517;
84 GLOBAL_MATPLOT.setSolution(sv);
86 sv(0) = 0.9617; sv(1) = 0.1650;
87 GLOBAL_MATPLOT.setSolution(sv);
89 glutInit(&nargs, args);
90 glutCreateWindow(50,50,800,650);
91 glutDisplayFunc( display );
92 glutReshapeFunc( reshape );
94 glutMotionFunc( motion );
95 glutMouseFunc( mouse );
96 glutPassiveMotionFunc(passive);
97 glutKeyboardFunc( keyboard );
learning_type l_type
Type of learning for the kernel params.
Plots the evolution (nonparametric process, criteria or contour plots) of 1D and 2D problems...
size_t n_init_samples
Number of samples before optimization.
size_t n_iterations
Maximum BayesOpt evaluations (budget)
int verbose_level
Neg-Error,0-Warning,1-Info,2-Debug -> stdout 3-Error,4-Warning,5-Info,>5-Debug -> logfile...
score_type sc_type
Score type for kernel hyperparameters (ML,MAP,etc)
Allows to load parameters from file.
int random_seed
>=0 -> Fixed seed, <0 -> Time based (variable).
size_t n_iter_relearn
Number of samples before relearn kernel.