文件名称:pyknow:皮诺
文件大小:1.31MB
文件格式:ZIP
更新时间:2024-03-31 11:46:46
系统开源
PyKnow:Python专家系统 PyKnow是一个Python库,用于构建受启发的专家系统。 from random import choice from pyknow import * class Light ( Fact ): """Info about the traffic light.""" pass class RobotCrossStreet ( KnowledgeEngine ): @ Rule ( Light ( color = 'green' )) def green_light ( self ): print ( "Walk" ) @ Rule ( Light ( color = 'red' )) def red_light ( self ): print ( "Don't wal
【文件预览】:
pyknow-develop
----MANIFEST.in(14B)
----requirements()
--------develop.txt(68B)
--------tox.txt(11B)
----README.rst(2KB)
----CHANGELOG.rst(2KB)
----.travis.yml(317B)
----tox.ini(923B)
----TODO.rst(11B)
----pytest.ini(9B)
----LICENSE(7KB)
----setup.py(1KB)
----pyknow()
--------conditionalelement.py(1KB)
--------engine.py(7KB)
--------matchers()
--------watchers.py(1KB)
--------utils.py(1KB)
--------activation.py(1KB)
--------pattern.py(600B)
--------__init__.py(331B)
--------rule.py(3KB)
--------fieldconstraint.py(2KB)
--------fact.py(5KB)
--------operator.py(3KB)
--------abstract.py(1KB)
--------factlist.py(4KB)
--------strategies.py(985B)
--------frozenfact.py(0B)
--------shortcuts.py(456B)
--------agenda.py(934B)
--------deffacts.py(1KB)
----docs()
--------source()
--------talks()
--------examples()
--------Makefile(607B)
----tests()
--------unit()
----.gitignore(826B)
----.coveragerc(130B)