深网的逻辑推理
pymetheus的Python项目详细描述
在========= 比墨修斯
。。图片::https://img.shields.io/pypi/v/pymetheus.svg :目标:https://pypi.python.org/pypi/pymetheus
。。图片::https://img.shields.io/travis/vinid/pymetheus.svg :目标:https://travis-ci.org/vinid/pymetheus
。。图片::https://readthedocs.org/projects/pymetheus/badge/?version=latest :目标:https://pymetheus.readthedocs.io/en/latest/?badge=latest :alt:文档状态
PyMetheus:逻辑推理的深层网络
- 自由软件:GNU通用公共许可证v3
- 文档:https://pymetheus.readthedocs.io。在
特点
- 提供一个现成的工具来学习(fuzz)一阶逻辑,并使用底层向量空间
特点
- 创建逻辑深层网络
。。代码块::python
import pymetheus
import itertools
from pymetheus.pymetheus import LogicNet
ll = LogicNet()
。。在
- 引入一些常数
。。代码块::python
^{pr2}$。。在
- 介绍一些谓词和知识
。。代码块::python
ll.predicate("capital")
ll.predicate("country")
ll.knowledge("country(Milan,Italy)")
ll.knowledge("capital(Rome,Italy)")
ll.zeroing() # Initialize KB with all knowledge as false
。。在
- 在
使用数据添加量化规则 .. 代码块::python
rule=“全部?a、 是吗,?b: 资本(?)?a、 是吗,?b) ->国家(?)?a、 是吗,?b) ““ 通用规则(规则) var=[“意大利”,“罗马”,“米兰”] L.变量("?a“,变量) L.变量("?b“,无功) .. 在
在 - 在
学习和推理
在
。。代码块::python
ll.learn(epochs=1000, batch_size=25)
ll.reason("capital(Rome,Italy)", True)
。。在
学分
这个包是用Cookiecutter和audreyr/cookiecutter-pypackage
}项目模板创建的。在
。。_厨师长:https://github.com/audreyr/cookiecutter
.. _audreyr/cookiecutter-pypackage
:https://github.com/audreyr/cookiecutter-pypackage
在======= 历史
0.1.0(2019-08-22)
- PyPI的第一个版本。在
- 项目
标签: