--- id: pyagrum-nightly version: "3.0.0.9.dev202608141786444173" license: LGPL-3.0-only OR MIT license_treatment: unclear maintenance: active --- # pyAgrum-nightly — Bayesian networks and other Probabilistic Graphical Models. License: unclear · Maintenance: active · Downloads: 310.0K/mo ## What it is and what it does pyAgrum wraps a C++ probabilistic graphical model library and exposes it through a Python API for Bayesian Networks and related models. It lets you construct networks by adding nodes and arcs, populate conditional probability tables, save and load models in standard formats (BIF), and run inference algorithms to compute posterior probabilities given evidence. The library is designed for researchers and practitioners in AI, statistics, and decision analysis who need to model uncertainty and reason under incomplete information. It depends on numpy for numerical operations, matplotlib for visualization, pydot for graph layout, and scikit-learn for machine learning integration. The package supports modern Python versions (3.10–3.14) and runs on macOS, Linux, and Windows. Use it for: - Build and query Bayesian networks to model causal relationships and perform probabilistic inference with hard or soft evidence - Learn network structure and parameters from data using the library's training capabilities - Diagnose faults or predict outcomes in systems where uncertainty and conditional dependencies matter - Visualize probabilistic graphical models and export them to standard formats for sharing or downstream analysis - Integrate probabilistic reasoning into financial, insurance, or risk-assessment applications ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. pyAgrum is a Python library for creating, learning, and performing inference on Bayesian Networks and other Probabilistic Graphical Models, with a C++ backend and high-level Python interface. Yes, if you need Bayesian Networks or probabilistic graphical models in Python. Active maintenance, no known vulnerabilities, dual licensing (LGPL/MIT) gives flexibility, and broad platform support. Caveat: this is a nightly build (released today), so verify stability for your use case; production users may prefer the stable release track. ## Install pip install pyagrum-nightly uv add pyagrum-nightly poetry add pyagrum-nightly ## Installing pyAgrum-nightly Before you install: Medium install friction due to compiled wheels; nightly build released today (0 days since release). Active maintenance status. Requires Python 3.10 or later. Pre-built wheels available for macOS (x86_64, arm64), Linux (x86_64, aarch64), and Windows. License in practice: Dual-licensed under LGPLv3 and MIT at your choice. License treatment marked unclear in metadata, but description states you can integrate into your software under either license or both. No GPL contamination if you use only the pyAgrum interface, not native third-party interfaces. Quickstart: pip install pyagrum-nightly import pyagrum as gum bn = gum.fastBN("w<-r<-c{Yes|No}->s->w") bn.cpt("c").fillWith([0.5, 0.5]) ie = gum.LazyPropagation(bn) ie.makeInference() print(ie.posterior("w")) Requires Python 3.10 or later. This is a nightly build; consider testing before production deployment. Verify before relying: - Whether the nightly build is suitable for production use or intended for testing only - Specific performance characteristics or scalability limits for large graphical models - Whether all four runtime dependencies (numpy, matplotlib, pydot, scikit-learn) are required or optional ## Package facts - License: LGPL-3.0-only OR MIT (unclear) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 310.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags bayesian networks python, probabilistic graphical models, bayesian inference library, graphical model learning, probabilistic reasoning, belief network tools, graphical model inference, bayesian-networks, probabilistic-inference, graphical-models [View on SkillFed](https://skillfed.io/packages/pyagrum-nightly) · [View on PyPI](https://pypi.org/project/pyagrum-nightly/)