Python package for probabilistic network analysis.
Project description
ProbINet
Welcome to the documentation for the Probabilistic Inference on Networks
(ProbINet) Python
package. This project is a
collaborative effort to consolidate state-of-the-art probabilistic generative modeling implementations from various
scientific publications. Our focus lies in advancing network analysis techniques with an emphasis on recent modeling
approaches that relax the restrictive conditional independence assumption, enabling the modeling of joint
distributions of network data.
The ProbINet package is designed to be a comprehensive and user-friendly toolset for
researchers and practitioners
interested in modeling network data through probabilistic generative approaches. Our goal is to provide a
unified resource that brings together different advances scattered across many code repositories.
By doing so, we aim not only to enhance the usability of existing models, but also to facilitate the comparison
of different approaches. Moreover, through a range of tutorials, we aim at simplifying the use of these methods
to perform inferential tasks, including the prediction of missing network edges, node clustering (community detection),
anomaly identification, and the generation of synthetic data from latent variables.
Installation
This package requires Python 3.10 or higher. Please ensure you have one of these versions before proceeding with the installation. To get started, follow these steps:
- Clone the repository and navigate to the
probinetdirectory:
git clone https://github.com/MPI-IS/probinet.git
cd probinet
- Create a virtual environment. For example, using
venv:
python3 -m venv --copies venv
. venv/bin/activate
(venv) pip install -U pip # optional but always advised!
- Install the
ProbINetpackage by running:
(venv) pip install .
Usage
Run the ProbINet package as a whole with the run_probinet command. This command can be run
from any directory after the package is installed.
A list of the parameters that can be passed as arguments is available by running:
run_probinet --help
To run a specific model, pass the model name as an argument. The available models are: CRep, JointCRep, MTCOV, DynCRep, and ACD. For example, to run the CRep model, use:
run_probinet CRep
To see the specific options for a model, use the -h flag. For example, to see the options for the CRep model, use:
run_probinet CRep -h
The run_probinet command can be run at different logging levels. To run the command with the DEBUG level, use:
run_probinet CRep -d
To set arguments with double dashes (e.g., --convergence_tol), include them in the command line
as follows:
run_probinet CRep --convergence_tol 0.1
Some commands can also be executed using shorter versions of the arguments. For example, the
--convergence_tol argument can be shortened to -tol. For example:
run_probinet CRep -tol 0.1
These shorter versions can be found in the help message of each model.
Tests
To run the tests:
python -m unittest
Documentation
The documentation can be built with Sphinx. To install it, run:
pip install sphinx
To build the documentation, run:
cd docs
make html
The documentation will be available in the docs/build/html directory.
Tutorials
The tutorials are available in the tutorials directory. Each tutorial is a Jupyter notebook that can be run in a Jupyter environment.
Where to start
If you are new to this type of modeling, we suggest checking out the Inputs and Outputs section. This section provides an overview of the input and output data structures used in the package.
Authors
The authors of the original implementations integrated to this package are:
See the references in the documentation for more details.
Special thanks to Alejandro Posada for his contributions to the logo design. A sincere thank you to Valkyrie Felso and Kathy Su for their invaluable feedback. We also deeply appreciate Kibidi Neocosmos for serving as a beta user and helping refine the package.
Contributing
Would you like to contribute to the development of ProbINet? Contributions are welcome and appreciated! You can find detailed information on how to get started here: Contributing Guide.
License
This project is licensed under the GNU GPL version 3 - see the LICENSE file for details.
Copyright
© 2024, Max Planck Society / Software Workshop - Max Planck Institute for Intelligent Systems
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file probinet-1.0.0rc3.tar.gz.
File metadata
- Download URL: probinet-1.0.0rc3.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b23d8221b04c4d2802a139c7a92c607184516c3a1d04065927aca9198adb9105
|
|
| MD5 |
44bae62c9bf8f744140a64edc61bd3a8
|
|
| BLAKE2b-256 |
54d8bbd1154d44ed7734a035e545eda6c552c44501b3a083fadc91b8e5c087cd
|
File details
Details for the file probinet-1.0.0rc3-py3-none-any.whl.
File metadata
- Download URL: probinet-1.0.0rc3-py3-none-any.whl
- Upload date:
- Size: 223.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bffc6097fcc8d3261a7f49df3e540cb0caacddace54d0bc7e4e5dbfc43dfea85
|
|
| MD5 |
ba1f3d4303f7705772a57fcc295ce3ce
|
|
| BLAKE2b-256 |
1ce32afbc86fbdb61de513e81ec56dfbafff63cf27ff28f9ec0ee5a61b4cbd89
|