简体   繁体   中英

Naive Bayes vocabulary a set?

I am reading this document to get a handle on naive bayes. It should link to page 35

https://web.stanford.edu/class/cs124/lec/naivebayes.pdf#page=35

given two documents "abb" and "cdd" would vocabulary be:

{a,b,b,c,d,d}, |Vocabulary| == 6

or: {a,b,c,d}, |Vocabulary| == 4

just need a sanity check, thanks

The vocabulary would be {a,b,c,d} . Vocabulary refers to the set of terms the classifier is working with, sometimes called the feature space of the classifier.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM