From dbc13df17f2d1d18b5fab51bda3110673fd5468a Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Thu, 29 Feb 2024 10:57:00 +0100 Subject: [PATCH] Language tweak --- book.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book.org b/book.org index 6ee008e..21faac7 100644 --- a/book.org +++ b/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