BayesOpt
bayesoptmodule.BayesOptCategorical Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ evaluateSample()

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().

◆ optimize()


The documentation for this class was generated from the following file: