Debian Codegraph @

docs/manual/HMM___HMM__Get_cross-entropy___.html

raw
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>HMM & HMM: Get cross-entropy...</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b>
12 HMM & HMM: Get cross-entropy...
13 </b></font></table></table>
14 <p>Calculates the cross-entropy between the two selected <a href="HMM.html">HMM</a> models based on observation sequences.</p>
15 <h2>Settings</h2>
16 <dl>
17 <dt><b>Observation length</b>
18 <dd>defines the number of observations that have to generated.</dd>
19 <dt><b>Symmetric</b>
20 <dd>defines whether the symmetric formula is used in the calculation.</dd>
21 </dl>
22 <h2>Algorithm</h2>
23 <p>The cross-entropy is a measure of the distance between two models &#955;<sub>1</sub> and &#955;<sub>2</sub>. It is defined as</p>
24 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>D</i>(&#955;<sub>1</sub>,&#955;<sub>2</sub>) = 1/<i>N</i> (log <i>p</i>(<i>O</i><sub>2</sub>|&#955;<sub>1</sub>) - log <i>p</i>(<i>O</i><sub>2</sub>|&#955;<sub>2</sub>)),</table>
25 <p>where <i>O</i><sub>2</sub> is an observation sequence of length <i>N</i> generated by model &#955;<sub>2</sub>.</p>
26 <p>The symmetrized version is:</p>
27 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>D</i><sub><i>s</i></sub>(&#955;<sub>1</sub>,&#955;<sub>2</sub>) = (<i>D</i>(&#955;<sub>1</sub>,&#955;<sub>2</sub>) + <i>D</i>(&#955;<sub>2</sub>,&#955;<sub>1</sub>))/2.</table>
28 <h3>Links to this page</h3>
29 <ul>
30 <li><a href="HMM___HMM___HMMObservationSequence__Get_cross-entropy.html">HMM & HMM & HMMObservationSequence: Get cross-entropy</a>
31 </ul>
32 <hr>
33 <address>
34 <p>© djmw 20101017</p>
35 </address>
36 </body>
37 </html>