BayesOpt
|
Python Module for BayesOptCategorical. More...
Public Member Functions | |
def | __init__ (self, categories=None) |
Let's define the parameters. More... | |
def | parameters (self) |
def | parameters (self, params) |
def | evaluateSample (self, x_in) |
Function for testing. More... | |
def | optimize (self) |
Main function. More... | |
Public Attributes | |
params | |
Library parameters. | |
categories | |
Python Module for BayesOptCategorical.
Python module to get run BayesOpt library in a OO pattern. The objective module should inherit this one and override evaluateSample.
Definition at line 141 of file bayesoptmodule.py.
def bayesoptmodule.BayesOptCategorical.__init__ | ( | self, | |
categories = None |
|||
) |
Let's define the parameters.
For different options: see parameters.h and parameters.cpp . If a parameter is not define, it will be automatically set to a default value.
Definition at line 148 of file bayesoptmodule.py.
def bayesoptmodule.BayesOptCategorical.evaluateSample | ( | self, | |
x_in | |||
) |
Function for testing.
It should be overriden.
Definition at line 164 of file bayesoptmodule.py.
Referenced by bayesoptmodule.BayesOptCategorical.optimize().
def bayesoptmodule.BayesOptCategorical.optimize | ( | self | ) |
Main function.
Starts the optimization process.
Definition at line 168 of file bayesoptmodule.py.
References bayesoptmodule.BayesOptCategorical.categories, SystemCallsBranin.evaluateSample(), ExampleQuadratic.evaluateSample(), ExampleDisc.evaluateSample(), bayesoptmodule.BayesOptContinuous.evaluateSample(), bayesopt::BayesOptBase.evaluateSample(), XMLCallsBranin.evaluateSample(), bayesoptmodule.BayesOptDiscrete.evaluateSample(), bayesoptmodule.BayesOptCategorical.evaluateSample(), bayesoptmodule.BayesOptContinuous.params, bayesopt::AtomicKernel.params, bayesoptmodule.BayesOptDiscrete.params, and bayesoptmodule.BayesOptCategorical.params.