From 2789e0c3bf1ed7d0e72854bd79c491c920c614cc Mon Sep 17 00:00:00 2001 From: Leander Kurscheidt Date: Mon, 10 Jun 2024 14:44:18 +0000 Subject: [PATCH 1/4] added setup.py --- setup.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..303f1fe --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +from setuptools import setup + +setup( + name='DeepSeaProbLog', + version='1.0', + packages=['deepsea'], + package_dir={ + 'deepsea': '.', + }, + author='Lennert De Smet, Pedro Zuidberg Dos Martires, Robin Manhaeve, Giuseppe Marra, Angelika Kimmig, Luc De Raedt' +) \ No newline at end of file From 1bbd2c5b9175a86d35fc165ab52b9e210be4bf98 Mon Sep 17 00:00:00 2001 From: Leander Kurscheidt Date: Mon, 10 Jun 2024 14:49:46 +0000 Subject: [PATCH 2/4] added License --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 303f1fe..368839e 100644 --- a/setup.py +++ b/setup.py @@ -7,5 +7,6 @@ package_dir={ 'deepsea': '.', }, - author='Lennert De Smet, Pedro Zuidberg Dos Martires, Robin Manhaeve, Giuseppe Marra, Angelika Kimmig, Luc De Raedt' + author='Lennert De Smet, Pedro Zuidberg Dos Martires, Robin Manhaeve, Giuseppe Marra, Angelika Kimmig, Luc De Raedt', + license_files = ('LICENSE',), ) \ No newline at end of file From f11ad8077fd816dbdb9f6c4f3f9afd3b5d040d44 Mon Sep 17 00:00:00 2001 From: Leander Kurscheidt Date: Fri, 22 Nov 2024 12:27:54 +0000 Subject: [PATCH 3/4] small hack to use it as dependency (pls lennert don't do this in future projects :) it's not a good style) --- engines/__init__.py | 7 +++++++ setup.py | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/engines/__init__.py b/engines/__init__.py index 9a9bf3f..f7c387a 100644 --- a/engines/__init__.py +++ b/engines/__init__.py @@ -1,2 +1,9 @@ +# add parent directory to sys.path + +import sys +from pathlib import Path + +sys.path.append(str(Path(__file__).resolve().parents[1])) + from engines.engine import Engine from engines.exact_engine import ExactEngine diff --git a/setup.py b/setup.py index 368839e..262f09a 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,13 @@ setup( name='DeepSeaProbLog', version='1.0', - packages=['deepsea'], + packages=['deepsea', 'deepsea.examples', 'deepsea.engines', 'deepsea.semiring', 'deepsea.utils'], package_dir={ 'deepsea': '.', + 'deepsea.examples': './examples', + 'deepsea.engines': './engines', + 'deepsea.semiring': './semiring', + 'deepsea.utils': './utils', }, author='Lennert De Smet, Pedro Zuidberg Dos Martires, Robin Manhaeve, Giuseppe Marra, Angelika Kimmig, Luc De Raedt', license_files = ('LICENSE',), From d20aa83918df8230d8275466010dad83e193923c Mon Sep 17 00:00:00 2001 From: Leander Kurscheidt Date: Tue, 26 Nov 2024 11:00:28 +0000 Subject: [PATCH 4/4] added multivariate normal --- engines/exact_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/exact_engine.py b/engines/exact_engine.py index 47c5814..9dc99c3 100644 --- a/engines/exact_engine.py +++ b/engines/exact_engine.py @@ -105,7 +105,7 @@ def __init__(self, model): self.engine = DefaultEngine() self.supported_distributions = {"normal", "gamma", "beta", "uniform", "dirichlet", "poisson", "student", "logistic", "exponential", "generalisednormal", "categorical", "bernoulli", - "gumbelsoftmax", "vae_decoder"} + "gumbelsoftmax", "vae_decoder", "multivariatenormal"} def prepare(self, db): translated = SimpleProgram()