buddi.models.buddi4#
Functions
|
Used to instantiate a Keras tensor. |
|
Builds the BUDDI model. |
|
Defines a single hidden layer encoder that outputs two encodings: mu and log_var. |
|
A simple classifier that predicts from the latent space representation. |
|
Defines a classifier network that estimates cell type proportion from the input. |
|
Defines a decoder network that takes in both supervised and unsupervised inputs. |
|
Classifier loss function generator. |
|
Train buddi4 model with supervised and unsupervised datasets, |
|
KL divergence loss function generator. |
|
Reconstruction loss function generator. |
|
Dummy loss function for unsupervised branch proportion estimator. |
Classes
|
Optimizer that implements the Adam algorithm. |
|
Computes the crossentropy loss between the labels and predictions. |
|
Concatenates a list of inputs. |
|
Computes the mean of squares of errors between labels and predictions. |
|
A model grouping layers into an object with training/inference features. |
|
Custom layer that applies the reparameterization trick. |
|
Decorate an iterable object, returning an iterator which acts exactly like the original iterable, but prints a dynamically updating progressbar every time a value is requested. |