Skip to content

jake-soloff/NPEB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npeb: Nonparametric Empirical Bayes in Python

Nonparametric Maximum Likelihood Estimator (NPMLE) for estimating Gaussian location mixture densities in d-dimensions from independent, potentially heteroscedastic observations.

Installation

The easiest way to install npeb is using pip:

 pip install npeb 

Basic usage

from npeb import GLMixture

m = GLMixture()

## Compute the NPMLE 
m.fit(X, prec)

## Denoised estimates based on empirical prior
gmleb = m.posterior_mean(X, prec) 

image1

About

Python package for Nonparametric Empirical Bayes

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages