cellrank.ul.models.SKLearnModel.confidence_interval
- SKLearnModel.confidence_interval(x_test=None, **kwargs)[source]
Calculate the confidence interval.
Use
default_confidence_interval()
function if underlyingmodel
has not method for confidence interval calculation.- Parameters
x_test (
Optional
[ndarray
]) – Array of shape (n_samples,) used for confidence interval calculation. If None, usex_test
.kwargs – Keyword arguments for underlying
model
’s confidence method or fordefault_confidence_interval()
.
- Return type
- Returns
Updates and returns the following field:
conf_int
- Array of shape (n_samples, 2) containing the lower and upper bounds of the confidence interval.