scvi.model.AmortizedLDA.get_feature_by_topic

AmortizedLDA.get_feature_by_topic(n_samples=5000)[source]

Gets a Monte-Carlo estimate of the expectation of the feature by topic matrix.

Parameters
adata

AnnData to transform. If None, returns the feature by topic matrix for the source AnnData.

n_samples

Number of samples to take for the Monte-Carlo estimate of the mean.

Return type

DataFrameDataFrame

Returns

A n_var x n_topics Pandas DataFrame containing the feature by topic matrix.