sfaira.models.celltype.CellTypeMarker

class sfaira.models.celltype.CellTypeMarker(in_dim: int, out_dim: int, l1_coef: float = 0.0, l2_coef: float = 0.0, kernel_initializer='glorot_uniform', bias_initializer='zeros', bias_regularizer=None, kernel_constraint=None, bias_constraint=None, name='celltype_marker', **kwargs)

Marker gene-based cell type classifier: Learns whether or not each gene exceeds requires threshold and learns cell type assignment as linear combination of these marker gene presence probabilities. Activitiy and weight regularizers keep this sparse.

Attributes

version

Methods

predict(x, **kwarg)