这篇博客只是简单记录一下,没什么技术含量。
DeepProbLog是发表在NeurIPS 2018上的论文:
Manhaeve, Robin, Sebastijan Dumancic, Angelika Kimmig, Thomas Demeester, and Luc De Raedt. "Deepproblog: Neural probabilistic logic programming." Advances in Neural Information Processing Systems 31 (2018).
我想简单试试它的实验,应该说安装的过程还是挺简单的:
按照这里的介绍:https://github.com/ML-KULeuven/deepproblog
已经基本包含了所有步骤:首先安装那些Requirements,其次运行:
python setup.py install
可是,当我按照上面网页切换到MINST数据集:
cd src/deepproblog/examples/MINST
然后运行:
python addition.py
就是论文里说的图像数字相加的例子。结果报错:
ImportError: Could not find the SWI-Prolog library in this platform. If you are sure it is installed, please open an issue.
嗯?不知道SWI-Prolog是个什么东西,在其网站上看了看:SWI-Prolog,原来是个Prolog的engine,想不通,我只想运行一下这个model,为啥还要装Prolog呢,这个model不是基于Problog的吗?Introduction. — ProbLog: Probabilistic Programming
没办法,看了看这里:Installing from PPA (Ubuntu Personal Package Archive),可以通过binary形式安装,照着输入命令就可以了,然后再运行python addition.py,发现就可以正常开始训练了。就简单记录这么多。