Debian Codegraph @

docs/manual/HMM___HMMObservationSequence__Get_cross-entropy.html

raw symbols SCIP
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>HMM & HMMObservationSequence: 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 & HMMObservationSequence: Get cross-entropy
13 </b></font></table></table>
14 <p>Calculates the cross-entropy between the selected <a href="HMM.html">HMM</a> model and the <a href="HMMObservationSequence.html">HMMObservationSequence</a>.</p>
15 <p>The cross-entropy is a useful upper bound for the entropy of a model. An approximation to the cross-entropy for a model on a observation sequence <i>O</i> of length <i>N</i> is: </p>
16 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>H</i>(<i>O</i>) = -1/<i>N</i> log <i>p</i>(<i>O</i>),</table>
17 <p>where <i>p</i>(<i>O</i>) is the probability of the observation sequence given the model.</p>
18 <hr>
19 <address>
20 <p>© djmw 20101017</p>
21 </address>
22 </body>
23 </html>