sc_reconstruction.decoders.ReconMLPDecoder#
- class sc_reconstruction.decoders.ReconMLPDecoder(n_input, n_output, n_cat_list=None, n_layers=1, n_hidden=128, distribution='normal', learning_rate=0.001, reduce_lr_on_plateau=False, lr_factor=0.6, lr_patience=5, lr_threshold=0.001, lr_min=0.0, library_size_mode='none', decoder_output_activation=None, **kwargs)[source]#
Bases:
BaseReconstructionDecoder- Parameters:
- __init__(n_input, n_output, n_cat_list=None, n_layers=1, n_hidden=128, distribution='normal', learning_rate=0.001, reduce_lr_on_plateau=False, lr_factor=0.6, lr_patience=5, lr_threshold=0.001, lr_min=0.0, library_size_mode='none', decoder_output_activation=None, **kwargs)[source]#
Methods
__init__(n_input, n_output[, n_cat_list, ...])decode(z, *cat_list)Decode latent representations to data space
load(path[, map_location])Load the model weights
save(path)Save the trained decoder.
train([datamodule])