Event2Vec: additive event embeddings where a linear score on a history decomposes exactly into per-event terms [P]
Mirrored from r/MachineLearning for archival readability. Support the source by reading on the original site.
| I've been working on Event2Vec, a small library for learning embeddings of discrete event sequences (purchases, logs, clinical codes, etc.) with a deliberately simple structure: a history is the running sum of its event vectors. Training is self-supervised next-event prediction, plus a reconstruction term that asks The history is a sum, any linear model on top of it is also a sum. For instance, a churn or risk score(see teaser) One might question, e1+e2 = e2+e1 = e3, but training is, so while vector embedding in (Euclidean) space is commutative, the training isn't. Furthermore, there are several alternative spaces that are gyro/non-commutative, that are part of the library(checkout the website)
I started this for root-cause analysis of fault sequences at the Advanced Light Source (Berkeley Lab), where I'd been naively using Word2Vec on event logs and needed directionality without going to an opaque sequence model. Links
scikit-learn-style API ( [link] [comments] |
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.