cellrank.ul.models.FailedModel
- class cellrank.ul.models.FailedModel(model, exc=None)[source]
Model representing a failure of the original
model
.- Parameters
model (
BaseModel
) – The original model which has failed.exc (
Union
[BaseException
,str
,None
]) – The exception that caused themodel
to fail or astr
containing the message. In the latter case,cellrank.ul.models.FailedModel.reraise()
aRuntimeError
with that message. If None, :class`UnknownModelError` will eventually be raised.
Attributes
Annotated data object.
Array of shape (n_samples, 2) containing the lower and upper bounds of the confidence interval.
Underlying model.
Whether the model is prepared for fitting.
Number of cells in
adata
.Filtered weights of shape (n_filtered_cells,) used for fitting.
Unfiltered weights of shape (n_cells,).
Filtered independent variables of shape (n_filtered_cells, 1) used for fitting.
Unfiltered independent variables of shape (n_cells, 1).
Filtered independent variables used when calculating default confidence interval, usually same as
x
.Independent variables of shape (n_samples, 1) used for prediction.
Filtered dependent variables of shape (n_filtered_cells, 1) used for fitting.
Unfiltered dependent variables of shape (n_cells, 1).
Filtered dependent variables used when calculating default confidence interval, usually same as
y
.Prediction values of shape (n_samples,) for
x_test
.Methods
confidence_interval
([x_test])Do nothing.
copy
()Return a copy of self.
default_confidence_interval
([x_test])Do nothing.
fit
([x, y, w])Do nothing and return self.
plot
([figsize, same_plot, hide_cells, perc, ...])Plot the smoothed gene expression.
predict
([x_test, key_added])Do nothing.
prepare
(*_args, **_kwargs)Do nothing and return self.
read
(fname[, adata, copy])Deserialize self from a file.
reraise
()Raise the original exception with additional model information.
write
(fname[, write_adata, ext])Serialize self to a file.