Skip to content
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

Missing information in strats_notebook.ipynb (fore_max_len) #4

Open
nick-j-braun opened this issue Dec 14, 2023 · 2 comments
Open

Missing information in strats_notebook.ipynb (fore_max_len) #4

nick-j-braun opened this issue Dec 14, 2023 · 2 comments

Comments

@nick-j-braun
Copy link

Under the comment "Find max_len." there is tn explanation or programatic path to follow to know what this value should be. The number 880 is hardcoded in. What should this value be if trying to apply this code to a different project?

means = demo.mean(axis=0, keepdims=True)
stds = demo.std(axis=0, keepdims=True)
stds = (stds==0)*1 + (stds!=0)*stds
demo = (demo-means)/stds
# Get variable indices.
varis = sorted(list(set(data.variable)))
V = len(varis)
var_to_ind = inv_list(varis, start=1)
data['vind'] = data.variable.map(var_to_ind)
data = data[['ts_ind', 'vind', 'hour', 'value']].sort_values(by=['ts_ind', 'vind', 'hour'])
# Find max_len.
fore_max_len = 880
@sindhura97
Copy link
Owner

Hi, if you choose to apply it to a new dataset, you can set it based on the distribution of no. of triplets per time-series in the new dataset. You can set it to 99th percentile for example.

@hrishi-ds
Copy link

For mimic, the time series length is 880 but it's hard to determine the same for Physionet. I was wondering if you could share the value for physionet as well to keep my experiments consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants