sample_y
sample_y(X, n_samples=1, random_state=0)Draws samples from the GP posterior, taking inputs in physical units.
Same as GaussianProcessRegressor.sample_y, except that X is standardised with the fitted scaling first.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| X | array - like | Query inputs in physical units, shape (n_points, n_features). |
required |
| n_samples | int | Number of sample functions to draw. Defaults to 1. | 1 |
| random_state | int | np.random.RandomState | None | Seed or random state for the draws. Defaults to 0. | 0 |
Returns
| Name | Type | Description |
|---|---|---|
np.ndarray: Samples, shape (n_points, n_samples). |