<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Sequential Covering</title>
<meta name="AUTHOR" content="Jose M Vidal"></meta>
<meta name="GENERATOR" content="xslides.el, written by J.M. Vidal"></meta>
<link rel="next" href="learn-one-rule.xml" title="Learn-One-Rule"/>
<link rel="previous" href="rules.xml"  title="Rules"/>
<link rel="author" href="../../index.html" title="Jose M Vidal"/>
<link rel="parent" href="index.xml" title="Index"/>
<link rel="top" href="../index.html" title="Presentation List"/>

<link rel="stylesheet" type="text/css" href="../xslides-medwhite.css" title="White" media="all" />
 	    <link rel="alternate stylesheet" type="text/css" href="../xslides-medblue.css" title="Blue" media="all" />
 	    <link rel="alternate stylesheet" type="text/css" href="../xslides-usc.css" title="USCTheme" media="all" />
<script language="javascript" type="text/javascript" src="../scripts/stylehelper.js"></script>
</head>
<body>
<div class="navbar">
<p>
<a onclick="javascript:this.href=getURL('rules.xml');return true;" rel="prev" href="rules.xml" accesskey="P" title="Rules">&larr;</a>
<a rel="index" href="index.xml" onclick="javascript:this.href=getURL('index.xml');return true;" accesskey="I" title="Index Page">^</a>
<a rel="next" href="learn-one-rule.xml" onclick="javascript:this.href=getURL('learn-one-rule.xml');return true;" accesskey="N" title="Learn-One-Rule">&rarr;</a>
</p>
</div>
<h1 class="slide">Sequential Covering</h1>
<div class="slidebody">
      <ul>
	<li>The idea in a <dfn>sequential covering</dfn> algorithm is
	to learn one rule, remove the data it covers, then
	repeat. </li>

	
      </ul>
<code>
<span class="comment">
;Examples is the set of examples;<br/>
;&nbsp;e.g.<br/>
;&nbsp;1- Wind(d1)=Strong, Humdity(d1)=Low, Outlook(d1)=Sunny, PlayTennis(d1)=No<br/>
;&nbsp;2- Wind(d2)=Weak, Humdity(d2)=Med, Outlook(d2)=Sunny, PlayTennis(d2)=Yes<br/>
;&nbsp;3- Wind(d3)=Med, Humdity(d3)=Med, Outlook(d3)=Rain, PlayTennis(d3)=No<br/>
;Target_attribute is the one wish to learn.<br/>
;&nbsp;e.g. PlayTennis(x)<br/>
;Attributes is the set of all possible attributes.<br/>
;&nbsp;e.g. Wind(x), Humidity(x), Outlook(x)<br/>
;&nbsp;Threshold is the desired performance.<br/>
;<br/>
</span>
<span class="function-name">Sequential_covering</span> (Target_attribute, Attributes, Examples, Threshold) :<br/>
&nbsp;&nbsp;Learned_rules = {}<br/>
&nbsp;&nbsp;Rule = <span class="function-name">Learn-One-Rule</span>(Target_attribute, Attributes, Examples)<br/>
<br/>
&nbsp;&nbsp;<span class="keyword">while</span> <span class="function-name">Performance</span>(Rule, Examples) &gt; Threshold :<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Learned_rules = Learned_rules + Rule<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Examples = Examples - {examples correctly classified by Rule}<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Rule = <span class="function-name">Learn-One-Rule</span>(Target_attribute, Attributes, Examples)<br/>
<br/>
&nbsp;&nbsp;Learned_rules = sort Learned_rules according to performance over Examples<br/>
&nbsp;&nbsp;<span class="keyword">return</span> Learned_rules<br/>
</code>
      <ul>
	<li>We require <span class="function-name">Learn-One-Rule</span> to have high
	(perfect?) accuracy but not necessarily high coverage (i.e.,
	when it makes a prediction it should be true).</li>

	<li>Since it performs a greedy search it is not guaranteed to
	find the best or smallest set of rules that cover the training
	examples.</li>
      </ul>
    </div><hr class="bottom"/>
<table class="footer" cellspacing="0" cellpadding="0" border="0" width="97%" summary="footer">
<tr valign="bottom">
<td><p class="author"><a href="../../index.html">Jos&eacute; M. Vidal</a>
<a class="remote" href=" http://validator.w3.org/check?uri=http://jmvidal.cse.sc.edu/talks/learningrules/sequentialcovering.xml">.</a></p>
</td>
<td align="right"><p class="index">3 of 47</p></td>
</tr>
</table>
</body>
</html>