Skip to main content

DeepProbLog: Problog with neural networks

Project description

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.

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

deepproblog-2.0.6.tar.gz (98.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepproblog-2.0.6-py3-none-any.whl (127.5 kB view details)

Uploaded Python 3

File details

Details for the file deepproblog-2.0.6.tar.gz.

File metadata

  • Download URL: deepproblog-2.0.6.tar.gz
  • Upload date:
  • Size: 98.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for deepproblog-2.0.6.tar.gz
Algorithm Hash digest
SHA256 30cd44d86bccdfea76e1f7ef153b49f3a97deea600a0ffa95fd6664bb4b696c5
MD5 ca666e67a36e47de9c27feaa288f44a8
BLAKE2b-256 c8a17dd13e743bc6914dcdd256b0e5442e187f6fd57d21924c16edd55378b6dd

See more details on using hashes here.

File details

Details for the file deepproblog-2.0.6-py3-none-any.whl.

File metadata

  • Download URL: deepproblog-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 127.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for deepproblog-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e341659b7c2a16ca3c8d039398ce986b9a589c6b4b0aa42400ffde4a0cca2c2b
MD5 4855da0d4e701b49b539bd226e975fbd
BLAKE2b-256 724f51efc9e8bc3f734054dcbf730fdbd5f32a5358e125a2a86e59a800edf356

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