/usr/share/doc/python-pebl/html/learner/greedy.html is in python-pebl-doc 1.0.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 189 190 191 192 193 194 195 196 197 198 | <!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>learner.greedy – Greedy learner — Pebl v1.0.1 documentation</title>
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '1.0.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="top" title="Pebl v1.0.1 documentation" href="../index.html" />
<link rel="up" title="API Reference" href="../apiref.html" />
<link rel="next" title="learner.simanneal – Simulated annealing learner" href="simanneal.html" />
<link rel="prev" title="learner.exhaustive – Exhaustive learners" href="exhaustive.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="simanneal.html" title="learner.simanneal – Simulated annealing learner"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="exhaustive.html" title="learner.exhaustive – Exhaustive learners"
accesskey="P">previous</a> |</li>
<li><a href="../index.html">Pebl v1.0.1 documentation</a> »</li>
<li><a href="../apiref.html" accesskey="U">API Reference</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="module-pebl.learner.greedy">
<span id="learner-greedy-greedy-learner"></span><h1><tt class="xref py py-mod docutils literal"><span class="pre">learner.greedy</span></tt> – Greedy learner<a class="headerlink" href="#module-pebl.learner.greedy" title="Permalink to this headline">¶</a></h1>
<p>This module provides a learner implementing the Greedy Learner algorithm.
More information about greedy algorithms: <a class="reference external" href="http://en.wikipedia.org/wiki/Greedy_algorithm">http://en.wikipedia.org/wiki/Greedy_algorithm</a></p>
<div class="section" id="configuration-parameters">
<h2>Configuration Parameters<a class="headerlink" href="#configuration-parameters" title="Permalink to this headline">¶</a></h2>
<dl class="confparam">
<dt id="confparam-greedy.max_iterations">
<tt class="descname">greedy.max_iterations</tt><a class="headerlink" href="#confparam-greedy.max_iterations" title="Permalink to this definition">¶</a></dt>
<dd><p>Maximum number of iterations to run.
default=1000</p>
</dd></dl>
<dl class="confparam">
<dt id="confparam-greedy.max_time">
<tt class="descname">greedy.max_time</tt><a class="headerlink" href="#confparam-greedy.max_time" title="Permalink to this definition">¶</a></dt>
<dd><p>Maximum learner runtime in seconds.
default=0</p>
</dd></dl>
<dl class="confparam">
<dt id="confparam-greedy.max_unimproved_iterations">
<tt class="descname">greedy.max_unimproved_iterations</tt><a class="headerlink" href="#confparam-greedy.max_unimproved_iterations" title="Permalink to this definition">¶</a></dt>
<dd><p>Maximum number of iterations without score improvement before a restart.
default=restart_after_max_unimproved_iterations(500)</p>
</dd></dl>
<dl class="confparam">
<dt id="confparam-greedy.seed">
<tt class="descname">greedy.seed</tt><a class="headerlink" href="#confparam-greedy.seed" title="Permalink to this definition">¶</a></dt>
<dd><p>Starting network for a greedy search.
default=’‘</p>
</dd></dl>
</div>
<div class="section" id="greedylearner-class">
<h2>GreedyLearner Class<a class="headerlink" href="#greedylearner-class" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><dl class="class">
<dt id="pebl.learner.greedy.GreedyLearner">
<em class="property">class </em><tt class="descclassname">pebl.learner.greedy.</tt><tt class="descname">GreedyLearner</tt><big>(</big><em>data_=None</em>, <em>prior_=None</em>, <em>**options</em><big>)</big><a class="headerlink" href="#pebl.learner.greedy.GreedyLearner" title="Permalink to this definition">¶</a></dt>
<dd><p>Create a learner that uses a greedy learning algorithm.</p>
<p>The algorithm works as follows:</p>
<blockquote>
<div><ol class="arabic simple">
<li>start with a random network</li>
<li>Make a small, local change and rescore network</li>
<li>If new network scores better, accept it, otherwise reject.</li>
<li>Steps 2-3 are repeated till the restarting_criteria is met, at
which point we begin again with a new random network (step 1)</li>
</ol>
</div></blockquote>
<p>Any config param for ‘greedy’ can be passed in via options.
Use just the option part of the parameter name.</p>
<p>For more information about greedy learning algorithms, consult:</p>
<blockquote>
<div><ol class="arabic simple">
<li><a class="reference external" href="http://en.wikipedia.org/wiki/Greedy_algorithm">http://en.wikipedia.org/wiki/Greedy_algorithm</a></li>
<li>D. Heckerman. A Tutorial on Learning with Bayesian Networks.
Microsoft Technical Report MSR-TR-95-06, 1995. p.35.</li>
</ol>
</div></blockquote>
<dl class="method">
<dt id="pebl.learner.greedy.GreedyLearner.run">
<tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#pebl.learner.greedy.GreedyLearner.run" title="Permalink to this definition">¶</a></dt>
<dd><p>Run the learner.</p>
<p>Returns a LearnerResult instance. Also sets self.result to that
instance.</p>
</dd></dl>
</dd></dl>
</div></blockquote>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="../index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#"><tt class="docutils literal"><span class="pre">learner.greedy</span></tt> – Greedy learner</a><ul>
<li><a class="reference internal" href="#configuration-parameters">Configuration Parameters</a></li>
<li><a class="reference internal" href="#greedylearner-class">GreedyLearner Class</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="exhaustive.html"
title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">learner.exhaustive</span></tt> – Exhaustive learners</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="simanneal.html"
title="next chapter"><tt class="docutils literal"><span class="pre">learner.simanneal</span></tt> – Simulated annealing learner</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/learner/greedy.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" size="18" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="simanneal.html" title="learner.simanneal – Simulated annealing learner"
>next</a> |</li>
<li class="right" >
<a href="exhaustive.html" title="learner.exhaustive – Exhaustive learners"
>previous</a> |</li>
<li><a href="../index.html">Pebl v1.0.1 documentation</a> »</li>
<li><a href="../apiref.html" >API Reference</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright 2008, Abhik Shah.
Last updated on Apr 29, 2011.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
</div>
</body>
</html>
|