pyKE专家系统

官网:

http://pyke.sourceforge.net/about_pyke/index.html

下载:

《Python Knowledge Engine (PyKE)》
https://sourceforge.net/projects/pyke/files/

安装:

 #python setup.py build
# python setup.py install

例子:

pip install HTMLTemplate

汉诺塔问题,这里是方案,不是找次数。

$ cd examples/towers_of_hanoi
$ python
>>> import driver
>>> driver.test(2)
got 1: ((0, 1), (0, 2), (1, 2))
got 2: ((0, 2), (0, 1), (2, 0), (1, 2), (0, 2))

介绍:

pyKE属于Logic Programming.
Pyke is an inference engine that applies rules to facts to establish additional facts (through forward-chaining rules), and/or to prove goals and optionally assemble Python functions into customized call graphs, called plans (through backward-chaining rules).
Pyke是一个推理引擎,它将规则应用于事实,以建立额外的事实(通过正向链接规则),并/或证明目标,并可选地集合Python函数组装成定制的调用图,称为计划(通过后向链规则)。
这里写图片描述

安装包区别py2与py3的文件包:

https://download.csdn.net/download/ld326/10582228
py2环境:pyke-1.1.1.zip
py3环境:pyke3-1.1.1.zip

论文

Bruce Frederiksen,Applying Expert System Technology to Code Reuse with Pyke ,2008

相关博客:

https://blog.csdn.net/lawme/article/list/5

https://blog.csdn.net/ld326/article/details/81391846

猜你喜欢

转载自blog.csdn.net/ld326/article/details/81391846