Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[4ca57f]: doc / html / index.html Maximize Restore History

Download this file

index.html    189 lines (179 with data), 8.3 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Welcome to Pyke</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="stylesheets/pyke.css" type="text/css" />
</head>
<body>
<table id="page-table">
<thead class="head">
<tr id="header1"><th id="header" colspan="3">
&nbsp;
</th></tr>
<tr id="header2">
<th id="crumb-left"></th>
<th id="crumb-line">
<div id="nav">
<ul>
<li>Home</li>
</ul>
</div>
</th>
<th id="crumb-right"></th>
</tr>
</thead>
<tbody id="body">
<tr id="body-tr">
<td id="left-nav">
<div id="left-nav-div">
<div class="title-nav"><a href="index.html">Home</a></div><div class="nav-branch">
<div class="normal-nav"><a href="overview/index.html">Overview</a></div>
<div class="normal-nav"><a href="installing_pyke.html">Installing Pyke</a></div>
<div class="normal-nav"><a href="using_pyke.html">Using Pyke</a></div>
<div class="normal-nav"><a href="krb_syntax/index.html">KRB Syntax</a></div>
<div class="normal-nav"><a href="examples.html">Examples</a></div>
<div class="normal-nav"><a href="logic_tricks.html">Logic Tricks</a></div>
<div class="normal-nav"><a href="PyCon2008-paper.html">PyCon 2008 Paper</a></div>
</div>
</div>
<div id="icons">
<div id="project-page">
<a href="http://sourceforge.net/projects/pyke/">Pyke Project Page</a>
</div>
Please Make a Donation:<br />
<a href="http://sourceforge.net/donate/index.php?group_id=207724">
<img src="http://images.sourceforge.net/images/project-support.jpg"
width="88" height="32" border="0"
alt="Support This Project" /> </a> <br /><br />
Hosted by: <br />
<!-- <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=207724&amp;type=3" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a> -->
<a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=207724&amp;type=4" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a>
</div>
</td>
<td id="main-td">
<div id="main">
<a name="startcontent" id="startcontent"></a>
<div class="document" id="welcome-to-pyke">
<h1 class="title">Welcome to Pyke</h1>
<h2 class="subtitle" id="release-0-3">Release 0.3</h2>
<p>Pyke is a knowledge-based inference engine (expert system) written in
100% python that can:</p>
<ul class="simple">
<li>Do both forward-chaining (data driven) and
backward-chaining (goal directed) inferencing.<ul>
<li>Pyke may be embedded into any python program.</li>
</ul>
</li>
<li>Automatically generate python programs by assembling individual python
functions into complete call graphs.<ul>
<li>This is done through a unique design where the individual python
functions are attached to backward-chaining rules.</li>
<li>Unlike other approaches to code reuse (e.g. Zope adapters and generic
functions), this allows the inference engine to ensure that all of the
function's requirements are completely satisfied, by examining the entire
call graph down to the leaves, before <strong>any</strong> of the functions are
executed.</li>
<li>This is an optional feature. You don't need to use it if you just
want the inferencing capability by itself.</li>
</ul>
</li>
</ul>
<div class="section">
<h2><a id="the-knowledge-engine-supports" name="the-knowledge-engine-supports">The knowledge engine supports:</a></h2>
<ul class="simple">
<li>Multiple <em>fact bases</em>, each with its own list of facts.</li>
<li>Both <em>forward-chaining</em> rules and <em>backward-chaining</em> rules.</li>
<li>Multiple <em>rule bases</em>, each with its own list of forward-chaining
and/or backward-chaining rules.</li>
<li>Rule base inheritance -- <em>activating</em> the derived rule base
includes the rules from the parent rule base.</li>
<li>The inference rules are compiled into python functions, allowing
python code snippets to be used within the rules.
This greatly enhances the expressiveness of the rules.</li>
</ul>
</div>
<div class="section">
<h2><a id="automatic-program-generation" name="automatic-program-generation">Automatic program generation:</a></h2>
<ul class="simple">
<li>Calls the generated python programs <em>plans</em>.</li>
<li>Plans may be run multiple times without needing to rerun the inference
rules.</li>
<li>Plans may be pickled and cached to disk to be used by other programs or
in later runs of the same program.</li>
<li>No pyke modules are required to run the plans.</li>
</ul>
</div>
<div class="section">
<h2><a id="potential-pyke-applications" name="potential-pyke-applications">Potential pyke applications:</a></h2>
<ul class="simple">
<li>Complicated decision making applications.</li>
<li>The back-end (code generation and optimization) of compilers.
Pyke is used as the back-end of its own
compiler that translates rules into python code.</li>
<li>Automatic SQL statement generation.</li>
<li>Automatic HTML generation and automatic HTML template processing.</li>
<li>Automatic program builder to reuse a common set of functions for many
different specific situations. This could also easily
incorporate a new custom function into a much larger program, where the use
of the custom function might influence the choice of other standard
functions in other parts of the program.</li>
<li>The control module for a web framework tool.</li>
<li>A high-level planner to automatically distribute the
modules of a large system over several computers in a distributed system
to meet specific performance and capacity goals. This could be used to
automatically scale the same system code from a small one program,
one computer system
to much larger distributed systems to meet a wide range of performance
goals.</li>
<li>Diagnosis systems, including automated customer service systems.</li>
<li>Program or library customization for specific uses.</li>
<li>In addition to being able to build programs, pyke can instantiate,
configure and interconnect a network of objects to meet a specific need
or situation.</li>
</ul>
</div>
</div>
<!-- <div id="return-to-top">
<a href="#">Return to Top</a>
</div>
-->
</div>
</td>
<td id="right-nav">
<div id="right-nav-div">
<h3>More:</h3>
<div class="right-item"><a href="overview/index.html">Overview</a><p>The big picture of
what all this knowledge-base, inferencing and automatic program
generation stuff means and how it works.</p>
</div>
<div class="right-item"><a href="installing_pyke.html">Installing Pyke</a><p>System Requirements and installing pyke.</p>
</div>
<div class="right-item"><a href="using_pyke.html">Using Pyke</a><p>How your python program uses pyke.</p>
</div>
<div class="right-item"><a href="krb_syntax/index.html">KRB Syntax</a><p>Syntax of the knowledge rule base (KRB) files, which is where you
write your rules.</p>
</div>
<div class="right-item"><a href="examples.html">Examples</a><p>This gives an overview of the examples provided with pyke.</p>
</div>
<div class="right-item"><a href="logic_tricks.html">Logic Tricks</a><p>How to accomplish different logic operations with rules.</p>
</div>
<div class="right-item"><a href="PyCon2008-paper.html">Applying Expert System Technology to Code Reuse with Pyke</a><p>Paper presented at the PyCon 2008 conference in Chicago.</p>
</div>
</div>
</td>
</tr>
</tbody>
<tfoot id="foot">
<tr id="foot2">
<td id="copyright" colspan="3">
Copyright &copy; 2007 Bruce Frederiksen
</td>
</tr>
</tfoot>
</table>
<div id="last-modified">
Page last modified Sun, Jun 08 2008.
</div>
</body>
</html>