Skip to content

Library implementation of variational inference with em maximization on polygenic risk prediction with spike-and-slab prior and normal likelihood

Notifications You must be signed in to change notification settings

TheMatrixMaster/variational-inference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Variational Inference with EM algorithm

Library implementation of variational inference with em maximization on the task of polygenic risk prediction (PRS) from GWAS marginal statistics. This repository was created to accompany my two part blog post on variational inference.

Part 1: Theory and motivation of variational inference with expectation maximization
Part 2: Implementation of variational inference on PRS posterior effect size inference

To use the library, please update main.py by adding your desired functional prior distribution, likelihood distribution, and parameter update functions in the compute_elbo() function.

About

Library implementation of variational inference with em maximization on polygenic risk prediction with spike-and-slab prior and normal likelihood

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages