skactiveml.visualization.mesh#

skactiveml.visualization.mesh(bound, res)[source]#

Function to get samples of a mesh grid as well as x-mesh and y-mesh with given resolution in the specified bounds.

Parameters
boundarray-like of shape [[xmin, ymin], [xmax, ymax]]

The bounds of the mesh grid.

resint

The resolution of the plot.

Returns
X_meshnp.ndarray of shape (res, res)

Mesh grid over x.

Y_meshnp.ndarray of shape (res, res)

Mesh grid over y.

mesh_samplesnp.ndarray of shape (res*res, 2)

Samples of the mesh grid