CONAN.geepee.GPSaveObj.predict#
- CONAN.geepee.GPSaveObj.predict(x=None, return_var=False, series_id=0)#
Predict the GP at the given x values.
- Parameters:
x (array-like, optional) – The x values at which to predict the GP. If None, use the saved x values.
return_var (bool, optional) – If True, return the variance of the GP prediction.
series_id (int, optional) – For multiseries GP fit with Spleaf, the series ID (dimension) for the GP prediction. Default is 0.
- Returns:
array-like – The GP prediction at the given x values.
If return_var is True, returns a tuple of (mean, variance).
If return_var is False, returns only the mean.