Skip to main content

DeepProbLog

Unit tests

DeepProbLog is an extension of ProbLog that integrates Probabilistic Logic Programming with deep learning by introducing the neural predicate. The neural predicate represents probabilistic facts whose probabilites are parameterized by neural networks. For more information, consult the papers listed below.

Installation

DeepProbLog can easily be installed using the following command: Make sure the following packages are installed:

pip install deepproblog

Test

To make sure your installation works, install pytest

pip install pytest

and run

python -m deepproblog test

Requirements

DeepProbLog has the following requirements:

Approximate Inference

To use Approximate Inference, we have the following additional requirements

  • PySwip
    • Use pip install git+https://github.com/ML-KULeuven/pyswip
  • SWI-Prolog < 9.0.0 The latter can be installed on Ubuntu with the following commands:
sudo apt-add-repository ppa:swi-prolog/stable
sudo apt install swi-prolog=8.4* swi-prolog-nox=8.4* swi-prolog-x=8.4*

Experiments

The experiments are presented in the papers are available in the src/deepproblog/examples directory.

Papers

  1. Robin Manhaeve, Sebastijan Dumancic, Angelika Kimmig, Thomas Demeester, Luc De Raedt: DeepProbLog: Neural Probabilistic Logic Programming. NeurIPS 2018: 3753-3763 (paper)
  2. Robin Manhaeve, Sebastijan Dumancic, Angelika Kimmig, Thomas Demeester, Luc De Raedt: Neural Probabilistic Logic Programming in DeepProbLog. AIJ (paper)
  3. Robin Manhaeve, Giuseppe Marra, Luc De Raedt: Approximate Inference for Neural Probabilistic Logic Programming. KR 2021

License

Copyright 2023 KU Leuven, DTAI Research Group

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Metadata

Release files for deepproblog 2.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepproblog 2.0.7
File Size Uploaded
deepproblog-2.0.7.tar.gz 100.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deepproblog 2.0.7
File Interpreter ABI Platform
deepproblog-2.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 231.4 kB

Release files / deepproblog-2.0.7.tar.gz

Download URL deepproblog-2.0.7.tar.gz
Size 100.9 kB
Tags Source
SHA-256 checksum
How to use checksums
07f81ae01f7cd6b3426be959466eaad2e04e170ca582b5efe539afd7c7c43809
BLAKE2b-256 checksum
How to use checksums
3ae073b91008ba1910d59db7d58f76ac39fc91245b77661e79f5498351ec90a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / deepproblog-2.0.7-py3-none-any.whl

Download URL deepproblog-2.0.7-py3-none-any.whl
Size 130.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4649e8c1662aa0d250982a8b875ae8a0780fcf6e626dbb60c6575224d2c2fc13
BLAKE2b-256 checksum
How to use checksums
465d1903d7636b2f64238e304bce81a9fee6ea63517a18b7bd1508ffe5951258
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

2.1.0

2 release files

This release

2.0.7 This release

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page