piglot.bin package
Submodules
piglot.bin.piglot module
Driver script for piglot.
piglot.bin.piglot_plot module
Driving script for piglot’s plotting utilities.
- cumulative_regret(values: ndarray, x_grid: ndarray) ndarray[source]
Compute the cumulative regret of a given function
Parameters
- valuesnp.ndarray
Function values
- x_gridnp.ndarray
Grid of x values
Returns
- np.ndarray
Cumulative regret
- make_surrogate(args)[source]
Driver for training a surrogate model for the available data.
Parameters
- argsdict
Passed arguments.
- pick_from_best(values: ndarray, variable: ndarray) ndarray[source]
Return the associated variable value associated with the current best objective
Parameters
- valuesnp.ndarray
Objective values
- variablenp.ndarray
Variable to output
Returns
- np.ndarray
Current best of the variable
- plot_animation(args)[source]
Driver for animating the response history.
Parameters
- argsdict
Passed arguments.
- plot_best(args)[source]
Driver for plotting the best function call so far.
Parameters
- argsdict
Passed arguments.
- plot_current(args)[source]
Driver for plotting the currently running case.
Parameters
- argsdict
Passed arguments.
- plot_gp(args)[source]
Driver for plotting a Gaussian process regression for the available data.
Parameters
- argsdict
Passed arguments.
- plot_history(args)[source]
Driver for plotting the history of a case.
Parameters
- argsdict
Passed arguments.
- plot_parameters(args)[source]
Driver for plotting the history of the parameters.
Parameters
- argsdict
Passed arguments.
Module contents
Module with the piglot and piglot-plot scripts.