Skip to content

Commit 576fb0d

Browse files
author
liuzi
committed
generative models-eg2
1 parent dcea80b commit 576fb0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_posts/2025-02-15-generative-models.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ $$
155155

156156
### Example 2: Gaussian Discriminant Analysis as a Generative Model
157157

158-
Let's say the feature vector $$x$$ of an email is using TF-IDF[[2]](#references) that measures the importance of words in the email. TF-IDF (Term Frequency-Inverse Document Frequency) is a numerical statistic that reflects the importance of a word in a document relative to a collection of documents (corpus). It is calculated as:
158+
Let's say the feature vector $$x$$ of an email is using TF-IDF [[2]](#references) that measures the importance of words in the email. TF-IDF (Term Frequency-Inverse Document Frequency) is a numerical statistic that reflects the importance of a word in a document relative to a collection of documents (corpus). It is calculated as:
159159

160160
$$
161161
\text{TF-IDF}(t, d) = \text{TF}(t, d) \times \text{IDF}(t)
@@ -205,7 +205,7 @@ $$
205205

206206
## References
207207

208-
[1] Ng, Andrew. "[CS229: Machine Learning Course Notes](https://cs229.stanford.edu/main_notes.pdf)". Stanford University, 2018.
209-
[2] Manning, Christopher D., et al. "[Introduction to Information Retrieval](https://nlp.stanford.edu/IR-book/pdf/irbookprint.pdf)". Stanford University, 2009.
208+
[1] Andrew, Ng. "[CS229: Machine Learning Course Notes](https://cs229.stanford.edu/main_notes.pdf)". Stanford University, 2018. \\
209+
[2] Salton, Gerard & Michael J., McGill. "[Introduction to Modern Information Retrieval](https://archive.org/details/introductiontomo00salt)". McGraw-Hill, 1983.
210210

211211

0 commit comments

Comments
 (0)