def test_autozi(save_path):
    data = SyntheticDataset(n_batches=1)
    for disp_zi in ['gene', 'gene-label']:
        autozivae = AutoZIVAE(n_input=data.nb_genes, dispersion=disp_zi, zero_inflation=disp_zi, n_labels=data.n_labels)
        trainer_autozivae = UnsupervisedTrainer(model=autozivae, gene_dataset=data, train_size=0.5)
        trainer_autozivae.train(n_epochs=2, lr=0.01)
        trainer_autozivae.test_set.elbo()
        trainer_autozivae.test_set.reconstruction_error()
        trainer_autozivae.test_set.marginal_ll()
def test_autozi(save_path):
    data = SyntheticDataset(n_batches=1)
    for disp_zi in ['gene', 'gene-label']:
        autozivae = AutoZIVAE(n_input=data.nb_genes, dispersion=disp_zi, zero_inflation=disp_zi, n_labels=data.n_labels)
        trainer_autozivae = UnsupervisedTrainer(model=autozivae, gene_dataset=data, train_size=0.5)
        trainer_autozivae.train(n_epochs=2, lr=0.01)
        trainer_autozivae.test_set.elbo()
        trainer_autozivae.test_set.reconstruction_error()
        trainer_autozivae.test_set.marginal_ll()