cellrank.ul.models.GAMR.predict

GAMR.predict(x_test=None, key_added='_x_test', level=None, **kwargs)[source]

Run the prediction. This method can also compute the confidence interval.

Parameters
  • x_test (Optional[ndarray]) – Array of shape (n_samples,) used for prediction. If None, use x_test.

  • key_added (str) – Attribute name where to save the x_test for later use. If None, don’t save it.

  • **kwargs – Keyword arguments for underlying model’s prediction method.

  • level (Optional[float]) – Confidence level for confidence interval calculation. If None, don’t compute the confidence interval. Must be in the interval [0, 1].

Returns

Updates and returns the following:

  • y_test - Prediction values of shape (n_samples,) for x_test.

Return type

numpy.ndarray