18.11.2012 Views

anytime algorithms for learning anytime classifiers saher ... - Technion

anytime algorithms for learning anytime classifiers saher ... - Technion

anytime algorithms for learning anytime classifiers saher ... - Technion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Technion</strong> - Computer Science Department - Ph.D. Thesis PHD-2008-12 - 2008<br />

|SID3|=3<br />

|SID3|=4<br />

a<br />

|SID3|=6<br />

Figure 3.7: Attribute evaluation using LSID3. The estimated subtree size <strong>for</strong> a is<br />

min(4, 3) + min(2, 6) = 5.<br />

we have<br />

|SID3|=2<br />

Procedure LSID3-Choose-Attribute(E, A, r)<br />

If r = 0<br />

Return ID3-Choose-Attribute(E, A)<br />

Foreach a ∈ A<br />

Foreach vi ∈ domain(a)<br />

Ei ← {e ∈ E | a(e) = vi}<br />

mini ← ∞<br />

Repeat r times<br />

mini ← min (mini, |SID3(Ei, A − {a})|)<br />

mini<br />

Return a <strong>for</strong> which totala is minimal<br />

totala ← � |domain(a)|<br />

i=1<br />

Figure 3.8: Attribute selection in LSID3<br />

�n−1<br />

r · (n − i) · O(m · (n − i)) =<br />

i=0<br />

n�<br />

O(r · m · i 2 ) = O(r · m · n 3 ). (3.2)<br />

i=1<br />

According to the above analysis, the run-time of LSID3 grows at most linearly<br />

with r (under the assumption that increasing r does not result in larger trees).<br />

29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!