Package implementing PLN models
Project description
PLNmodels: Poisson lognormal models
The Poisson lognormal model and variants can be used for analysis of mutivariate count data. This package implements efficient algorithms to fit such models.
Installation
PLNmodels is available on pypi. The development version is available on GitHub.
Package installation
pip install pyPLNmodels
Usage and main fitting functions
The package comes with an ecological data set to present the functionality
import pyPLNmodels
from pyPLNmodels.models import PlnPCAcollection, Pln
from pyPLNmodels.oaks import load_oaks
oaks = load_oaks()
Unpenalized Poisson lognormal model (aka PLN)
pln = Pln.from_formula("counts ~ 1 + tree + dist2ground + orientation ", data = oaks, take_log_offsets = True)
pln.fit()
print(pln)
Rank Constrained Poisson lognormal for Poisson Principal Component Analysis (aka PlnPCACollection)
pca = PlnPCAcollection.from_formula("counts ~ 1 + tree + dist2ground + orientation ", data = oaks, take_log_offsets = True, ranks = [3,4,5])
pca.fit()
print(pca)
References
Please cite our work using the following references:
- J. Chiquet, M. Mariadassou and S. Robin: Variational inference for probabilistic Poisson PCA, the Annals of Applied Statistics, 12: 2674–2698, 2018. link
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyPLNmodels-0.0.50.tar.gz
(90.9 kB
view hashes)
Built Distribution
Close
Hashes for pyPLNmodels-0.0.50-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b52393b146c1dacac425f3863f5ee26d4fc17145d1018713132cd28c7348df3 |
|
MD5 | c26d227c033362f543d136058dd45ad6 |
|
BLAKE2b-256 | 7990c8ad12843c7a8b35cb635f8cf4c921daa012d3fbd09dfba35d23b3d00486 |