Skip to content

Align keys in inference output with scvitools.module._constants._MODULE_KEYS #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

LouiseDck
Copy link

As shown in issue #103

When calling model.batch_removal(), eventually scvi's VAEmixin.get_latent_reprentation gets called, which checks the outputs of the module.inference call.
It checks for the presence of MODULE_KEYS.QZ_KEY (with value "qz"), and failing that, assumes that there is MODULE_KEYS.QZM_KEY (value qzm) and MODULE_KEYS.QZV_KEY (value qzv) present.
In the output dictionary, these keys are respectively qz_m and qz_v, resulting in the error.

It would be better to directly use the MODULE_KEYS.{key}, but these don't seem to be exported from scvi-tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant