Event2Vec:历史线性评分可精确分解为逐事件项的可加事件嵌入
Event2Vec: additive event embeddings where a linear score on a history decomposes exactly into per-event terms [P]
Event2Vec 是一个学习离散事件序列嵌入的轻量库,将历史表示为事件向量的累加和,用自监督下一事件预测加重建项训练,无需标签。其线性评分可精确分解为逐事件项之和,并支持双曲、球面、SO(n) 旋转、Heisenberg 群等非交换空间以保留顺序信息。
| 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] [留言] |
来源:r/MachineLearning · reddit.com