Skip to content

mlosch/pytorch-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytorch-stats

Work in progress toolbox to estimate parameters of distributions in PyTorch to utilize GPU parallelization and automatic differentiation.

Content

Incorporated algorithms:

  • (MLE) Maximum Likelihood Estimation using gradient descent optimization
  • (MAP) Maximum a Posteriori Estimation using gradient descent optimization
  • (MM-MLE) Mixture Model Maximum Likelihood Estimation using gradient descent optimization

Examples

MAP vs MLE

Given observations from a bimodal normal distribution with unknown parameters, of which we want to estimate a target distribution (green in the figure), utilizing a prior can greatly improve the estimator as seen in the figure. The code for this plot can be found in the MAP implementation and can be run via python -m stats.estimation.map.

ims/map_vs_mle.png

Mixture Model MLE

The code for this plot can be found in the MM implementation and can be run via python -m stats.estimation.mm.

ims/mm_mle.png

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages