skactiveml.visualization.mesh#
- skactiveml.visualization.mesh(bound, res)[source]#
Function to get instances of a mesh grid as well as x-mesh and y-mesh with given resolution in the specified bounds.
- Parameters
- bound: array-like, [[xmin, ymin], [xmax, ymax]]
The bounds of the mesh grid.
- res: int, optional (default=21)
The resolution of the plot.
- Returns
- X_mesh: np.ndarray, shape (res, res)
mesh grid over x
- Y_mesh: np.ndarray, shape (res, res)
mesh grid over y
- mesh_instances: np.ndarray, shape (res*res,)
instances of the mesh grid