embed_items
Trains an item2vec model on provided lists of items (or sentences of words, etc.).
This is essentially the word2vec algorithm applied to arbitrary lists of items. Word2vec computes vectors representing words such that nearby (similar) vectors represent words that are often found in a similar context. Item2vec refers to using the exact same algorithm but applying it to arbitrary lists of items in which the order of items has a comparable interpretation to words in a sentence (the items may be categories, tags, IDs etc.).
Note, that if the order of items in the list (session/basket etc.) is not important, and you simply want item vectors
to be similar if the corresponding items usually occur together in the same list, use the window
parameter (see
below) with a value of “all”.
We use gensim to train the item2vec model, so for further details also see it’s word2vec page.
Was this page helpful?