cellrank.ul.models.FailedModel

class cellrank.ul.models.FailedModel(model, exc=None)[source]

Model representing a failure of the original model.

Parameters

Attributes

adata

Annotated data object.

conf_int

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

model

The underlying model.

prepared

Whether the model is prepared for fitting.

w

Filtered weights of shape (n_filtered_cells,) used for fitting.

w_all

Unfiltered weights of shape (n_cells,).

x

Filtered independent variables of shape (n_filtered_cells, 1) used for fitting.

x_all

Unfiltered independent variables of shape (n_cells, 1).

x_hat

Filtered independent variables used when calculating default confidence interval, usually same as x.

x_test

Independent variables of shape (n_samples, 1) used for prediction.

y

Filtered dependent variables of shape (n_filtered_cells, 1) used for fitting.

y_all

Unfiltered dependent variables of shape (n_cells, 1).

y_hat

Filtered dependent variables used when calculating default confidence interval, usually same as y.

y_test

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)

Deserialize self from a file.

reraise()

Raise the original exception with additional model information.

write(fname[, ext])

Serialize self to a file.