ProbLog2: Probabilistic Logic Programming toolbox
Actively maintained. Last release 3 months ago. A safe choice.
pip install problogProbLog
ProbLog 2 is a Probabilistic Logic Programming toolbox. It allows to intuitively build programs that do not only encode complex interactions between a large sets of heterogenous components, but also the inherent uncertainties that are present in real-life situations.
Probabilistic logic programs are logic programs in which some of the facts are annotated with probabilities.
The engine tackles several tasks such as computing the marginals given evidence and learning from (partial) interpretations. ProbLog is a suite of efficient algorithms for various inference tasks. It is based on a conversion of the program and the queries and evidence to a weighted Boolean formula. This allows us to reduce the inference tasks to well-studied tasks such as weighted model counting, which can be solved using state-of-the-art methods known from the graphical model and knowledge compilation literature.
ProbLog is a Python package and can be embedded in Python or Java. Its knowledge base can be represented as Prolog/Datalog facts, CSV-files, SQLite database tables, through functions implemented in the host environment or combinations hereof.
ProbLog 2.1 works out of the box on systems with Python. It has been tested on Mac OSX, Linux and Windows.
Installation
ProbLog supports optional components which can be installed separately. See the file INSTALL for detailed installation instructions.
Python
To install ProbLog, you can use the pip with the following command:
pip install problog
Prerequisites
ProbLog 2.1 requires Python 3.6+. (Python 2.7+ support has been dropped since ProbLog 2.1.0.36.)