cellrank.ul.models.GAMR.confidence_interval

GAMR.confidence_interval(x_test=None, level=0.95, **kwargs)[source]

Calculate the confidence interval. Internally, this method calls cellrank.ul.models.GAMR.predict() to extract the confidence interval, if needed.

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

  • kwargs – Keyword arguments for underlying model’s confidence method or for default_confidence_interval().

  • level (float) – Confidence level.

Returns

Updates the following fields:

  • conf_int - Array of shape (n_samples, 2) containing the lower and upper bounds of the confidence interval.

Return type

numpy.ndarray