Optimal Transport and Loglikihood Losses for Expression#26
Open
bio-info-guy wants to merge 4 commits intodavidliwei:mainfrom
Open
Optimal Transport and Loglikihood Losses for Expression#26bio-info-guy wants to merge 4 commits intodavidliwei:mainfrom
bio-info-guy wants to merge 4 commits intodavidliwei:mainfrom
Conversation
- added nb, zinb, hnb, zig (zero inflate gaussian), pois and zpois distributions - calculate and use sizefactor based on distribution of model - custom sampling of all distributions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Major change:
Added log liklihood losses and sampling for expression prediction
MVCDecoderandmodel.encode_batch_with_perturbconfig.distributionallows following options:Nonenbzinbhnbpoiszipoiszig_get_sffunctionsfwas needed to help the MVCDecoder learn sizefactor invariant expression mean, which were then multiplied by the corresponding target cell's size factor to get the actual distributional means). During inference, one can use the input cell's sizefactor to scale since the target cell is unknown.sample=True or Falsefrom distribution during inference and also whether to use input data's sizefactors to scale final results (reasoning shown above)sizefactor=True or False.binsorraw counts. (NOTE: find way to enforce this in future commits)optimal transport:
jax(require installing jax package) when creating a dataloaderfalseviaconfig.use_ot, parameters can be provided viaconfig.ot_paramsas a dictionary (default is in set in the dataloader and roughly matches one target cell (with ~0.99 probability) for each non-perturbed cell)