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

How to define time. #27

Open
mohammadoshanreh opened this issue Apr 15, 2024 · 1 comment
Open

How to define time. #27

mohammadoshanreh opened this issue Apr 15, 2024 · 1 comment
Labels
question Further information is requested

Comments

@mohammadoshanreh
Copy link

Hi.

I just found this package and I was wondering how I can define time sequence (a column for time) for the observation.

@dkesada dkesada added the question Further information is requested label Apr 16, 2024
@dkesada
Copy link
Owner

dkesada commented Apr 16, 2024

Hi! There is no column used to define time in the dbnR package. It is assumed that the first row in a dataframe is the oldest one, then the second one comes after it and so on. The time sequence is assumed to be from the first row to the last in order of appearance. Then, after using the fold_dt() function over the dataframe, the relationships over time are representend on each row of the dataframe. Here's an image of how the fold_dt() function works:
unnamed
In the image, the oldest values are X = 3 and Y = -1, and the next seen values are X = 6 and Y = -2. After folding with size = 2, we can see in the fist row of the folded dataset how the previous values are stored in the '_t_1' columns, which will be used afterwards to learn the relationships of variables over time.

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

No branches or pull requests

2 participants