Language tweak
This commit is contained in:
parent
bcd629fa26
commit
dbc13df17f
1 changed files with 1 additions and 1 deletions
2
book.org
2
book.org
|
@ -3000,7 +3000,7 @@ Weights are assigned using two criteria.
|
|||
The first criterion is the size of the pattern (i.e., the number of nodes in the pattern), since a pattern with twenty nodes is a lot more specific than a pattern with only one node.
|
||||
The second criterion is the amount of times a pattern occurs across all messages.
|
||||
If all messages contain a specific pattern, it can not be reliably used to determine which message should be predicted and will therefore be assigned a smaller weight.
|
||||
The weights are calculated using the following formula below.
|
||||
The weights are calculated using the formula below.
|
||||
\[\operatorname{weight}(pattern) = \frac{\operatorname{len}(pattern)}{\operatorname{\#occurences}(pattern)}\]
|
||||
|
||||
**** Matching patterns to subtrees
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue