DataDiscrete.grid_samples DataDiscrete.grid_samples(n_samples: int) → ndarray[source] Returns grid samples from the domain of the data object. Parameters: n_samples (int) – Number of samples to return. Returns: np.ndarray – Grid samples (number, dim) from the domain of the data object.