plot_contour_gp¶
-
safeopt.
plot_contour_gp
(gp, inputs, predictions=None, figure=None, axis=None, colorbar=True, **kwargs)¶ Plot a 3D gp with uncertainty.
Parameters: - gp: Instance of GPy.models.GPRegression
- inputs: list of arrays/floats
The input parameters at which the GP is to be evaluated, here instead of the combinations of inputs the individual inputs that are spread in a grid are given. Only two of the arrays should have more than one value (not fixed).
- predictions: ndarray
Can be used to manually pass the GP predictions, set to None to use the gp directly.
- figure: matplotlib figure
The figure on which to draw (ignored if axis is provided
- axis: matplotlib axis
The axis on which to draw
Returns: - contour: matplotlib contour plot
- colorbar: matplotlib colorbar
- points: matplotlib plot