Get input corpus form AmortizedLDA model

Thank you for making this useful module to scvi and the detailed tutorial. Are there any way to fetch the input corpus went into the model?

Thanks,
Shams

Hi, thank you for using scvi-tools. I’m not sure if I’m following your question, are you referring to the anndata that the model is trained on?

Hi @martinkim0,
Sorry for the confusion, formated count matrix that went to the model.

You should be able to access the count matrix by retrieving model.adata.X, or model.adata.layers["your_layer"] depending on how the input AnnData was set up with the model.

1 Like