The API is new and often updated. Make heavy use of python's help function. So, for instance
class GPOptimizer(input_space_dimensions, index_set_bounds)
tell() communicates new data to the GP. Note, the entire dataset has to be communicated, the function will NOT append.
x ... points
variances, an array of shape(y)
init_gp() initializes a GP. For this, a guess for the hyperparameters is required. Depending on the subsequent training, that guess may or may not be taken into account. This is also the call the gives the user the opportunity to inject physical knowledge into the GP via the kernel and the mean function. The matrix solves will happen on the specified compute device ("cpu"/"gpu").
This function ask() s for a new optimal point, given (optional) acquisition and cost functions. If an optimization with a local component is used "x0" is used as starting point. n specifies the number of returned suggestions but only if "hgdl" is used as the optimizer. The position parameter is used to tell the cost function where the motion through the parameter space has to start.
train_gp() trains the initialized GP via a global, local or user-defined and callable optimization algorithm.
train_gp_async() trains the initialized GP asynchronously using HGDL.
Displays the data in the object.
Evaluates the current acquisition function, taking into account costs
If the training is performed asynchronously, this updates the hyperparameters in fvGP.
This function stops the async training but leaves the client alive.
This function stops the async training and kills the client.
Function to update the fvGP, will automatically be called if the data is updated via tell()
Function to initialize the costs. Note, the cost function still has to be passed to ask(), to activate the costs in the search.
Calls a user-provided callable that updates the cost function.
Computes the posterior mean at a set of points x.
Have suggestions for the API or found a bug?
Write a brief description of what you saw or what you'd like to see.