General
Gallery
Tutorials
GAM.
predict
Run the prediction.
x_test¶ (Optional[ndarray]) – Array of shape (n_samples,) used for prediction. If None, use x_test.
Optional
ndarray
x_test
key_added¶ (Optional[str]) – Attribute name where to save the x_test for later use. If None, don’t save it.
str
kwargs¶ – Keyword arguments for underlying model’s prediction method.
model
Updates and returns the following:
y_test - Prediction values of shape (n_samples,) for x_test.
y_test
numpy.ndarray