nichecompass.modules.BaseModuleMixin

class nichecompass.modules.BaseModuleMixin

Base module mix in class containing universal module functionalities.

Parts of the implementation are adapted from https://github.com/scverse/scvi-tools/blob/master/scvi/model/base/_base_model.py#L63 (01.10.2022).

Methods table

load_and_expand_state_dict(model_state_dict)

Load model state dictionary into model and expand it to account for architectural changes through e.g. add-on nodes.

Methods

BaseModuleMixin.load_and_expand_state_dict(model_state_dict)

Load model state dictionary into model and expand it to account for architectural changes through e.g. add-on nodes.

Parts of the implementation are adapted from https://github.com/theislab/scarches/blob/master/scarches/models/base/_base.py#L92 (01.10.2022).