Skip to content

Python package for Nonparametric Empirical Bayes

License

Notifications You must be signed in to change notification settings

jake-soloff/NPEB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 13, 2023
a2ff0b9 · Sep 13, 2023

History

47 Commits
Aug 15, 2023
Sep 13, 2023
Sep 13, 2023
Sep 13, 2023
Sep 13, 2023
Sep 13, 2023

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

No packages published

Languages