-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to sample an event time delta range within [0, 10,000] #55
Comments
Hi, this is a 'dtime_max' in the thinning algo params that determine the range of the
|
Thank you for your answer. In fact, I adjusted this dtime_max but it didn't help. |
Even after adjusting |
let me have a look |
I'm not sure I understand your code correctly. Here I found you used |
Hi, The perfect case is indeed to use a different pad token for time_delta_sequence. The current implementation of using type pad token is a simple workaround. When computing loss, we use masks from type_sequence to eliminate padded events, and therefore, the pad tokens for time_delta_sequence are not used. Another reason is there is not a straightforward way to determine the pad token id for time sequences. One way is to compute the statistics of the time delta sequences and then choose a large number. But this causes computations and not very friendly for users. |
In your example data,
time_since_last_event
is always within the range [0, 10]. If my sampledtime_since_last_event
can range from [0, 10,000], can you guide me on how to sample it?The text was updated successfully, but these errors were encountered: