yangalan123 / anhp-andtt Goto Github PK
View Code? Open in Web Editor NEWCodebase for Attentive Neural Hawkes Process (A-NHP) and Attentive Neural Datalog Through Time (A-NDTT)
License: MIT License
Codebase for Attentive Neural Hawkes Process (A-NHP) and Attentive Neural Datalog Through Time (A-NDTT)
License: MIT License
你好,请教个关于代码细节的问题。
在 manager.py 中加载数据的时候 add_bos=False, 但是在模型中却强制写成 add_bos=True,我改成 add_bos=False会报错。
dataset = NHPDataset(_data[_split], event_types, concurrent=False, add_bos=False, add_eos=False)
line 35,https://github.com/yangalan123/anhp-andtt/blob/master/anhp/esm/manager.py
self.add_bos = True
line 64,https://github.com/yangalan123/anhp-andtt/blob/master/anhp/model/xfmr_nhp_fast.py
从我个人理解来看,model.add_bos 和 dataset.add_bos 含义不一样对吗? model.add_bos 是指每次预测下一个点,所以label序列的长度比输入序列的长度要少一个,后面代码会因此有特殊的处理。
如果我的理解正确的话,那是不是所有的模型 model.add_bos 都应该是 True,这样代码里面一些 if else 的判断就不需要了,比如
line 158-165, https://github.com/yangalan123/anhp-andtt/blob/master/anhp/model/xfmr_nhp_fast.py,这部分实际上都不会执行。
非常感谢。
Hi Alan,
Thank you for your response.
I quite enjoyed the paper you recommended.
I believe that I have some level of understaning about the thinning algorithm, but still having a hard time understanding the mathmetical details behind it.
Also, It got me wondering about the difference between the method used in Neural Hawkes Process where you directly approximate the conditional expectation of t_i and the thinnin algorithm approach.
What would be the benefit of using the thinning algorithm?
Again, thank you for sharing a great work!
Hi authors,
Thank you for sharing the great work along with fixed versions for the previous works: THP and SAHP.
While I was reproducing the results for THP, I ran into a problem.
event_time
and prediction
need to be ruled out here:anhp-andtt/thp/thp_training/Utils.py
Line 103 in b907f38
Lastly, according to the datasets in google drive, each dataset is divided into several fold
. Have you used all the folds together to report the numbers in Figure2? Or used a particular fold?
Thank you in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.