Skip to main content

Python package to perfrom psuedo-likelihood maximisation inference on Ising models

Project description

CodeFactor

PyPLM: a Pseudo-Likelihood Maximization (PLM) python package

This python package implements the Pseudo-Likelihood Maximization (PLM) technique to solve the inverse Ising problem (equivalently known as pairwise Maximum Entropy modelling). The method allows the interaction network of systems of binary variables to be reconstructed, and relies on performing logistic regression.

PyPLM is structured around a single pipeline (the data_pipeline), which allows data to be generated and inferred. PyPLM also implements Firth's logistic regression penalty.

Installation

git clone https://github.com/maxkloucek/pyplm.git
cd pyplm
pip install .

Usage Examples

Please see example_2DIsing.py for an overview of how to use the pyplm data_pipeline. All data is stored using the hdf5 file format. To perform some elementary analysis, first run python example_2DIsing.py, and then see the example_2DIsing_analysis.ipynb notebook (requires jupyter notebook to be installed).

If you use this package for any scientific purpose then please cite: https://arxiv.org/abs/2301.05556

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pseudolm-1.0.1.tar.gz (20.0 kB view details)

Uploaded Source

File details

Details for the file pseudolm-1.0.1.tar.gz.

File metadata

  • Download URL: pseudolm-1.0.1.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for pseudolm-1.0.1.tar.gz
Algorithm Hash digest
SHA256 52be294610aebccfb96ca2b598a11e67a597a8a898f8c823e5c2d7d967d8ac4b
MD5 67b869ea9e4515c5bcb87d4d152aca13
BLAKE2b-256 a354690e4b2368d9ed2f9a1155c6c79aa3184f4f6f7ae35e83c3d99343a3411b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page