Hi all,
Many people got similar error (AttributeError: module 'scvi' has no attribute 'data' · Issue #824 · scverse/scvi-tools · GitHub ) but the solution install (Installation - scvi-tools) doesn’t work in my case.
scvi.model.SCVI.setup_anndata(adata)
vae = scvi.model.SCVI(adata)
vae.train()
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) in
----> 1 scvi.model.SCVI.setup_anndata(adata)
2 vae = scvi.model.SCVI(adata)
3 vae.train()
AttributeError: module ‘scvi’ has no attribute ‘model’
What is wrong in my case? Thank you so much!
Update: I figured it out.