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 evaluate your model on another dynamic graph dataset? #2

Open
Uchman21 opened this issue Dec 20, 2019 · 3 comments
Open

How to evaluate your model on another dynamic graph dataset? #2

Uchman21 opened this issue Dec 20, 2019 · 3 comments

Comments

@Uchman21
Copy link

I have a simple dataset of temporal graphs and would like to train it for link prediction. So far going through your code, everything seems confusing and highly tailored for only the social evolution dataset and not so clear to tailor for others. Can you provide a simple data loader for other normal graph datasets?

PS: A large amount of console printouts makes running the code confusing

@bknyaz
Copy link
Collaborator

bknyaz commented Dec 23, 2019

Hi,
Thanks for reporting this. I hope to have time in the future to fix this issue, but not sure when. So PRs are welcome.

On high level, the code should work with any data loader that returns (u, v, time_delta_uv, k, time_bar, time_cur) for each event:
https://github.com/uoguelph-mlrg/LDG/blob/master/data_loader.py#L193

where
u,v - are indices of nodes between which the event occured
time_delta_uv - is the difference between current time and previous time for nodes u and v
time_bar - are time stamps of last events for all nodes
time_cur - is current time

There can be other parts in the code where I expect the Social dataset, but only in a few places.

@bknyaz
Copy link
Collaborator

bknyaz commented Feb 9, 2020

Hi,
I added the base data loader class and example_data_loader showing which attributes and functions should be implemented for other datasets. Plus, added another dataset, Github.
The code is still not very clean, but hope it can be useful.

@kingmbc
Copy link

kingmbc commented Feb 11, 2020

Thanks! I'm just looking through your codes,
I just wonder, is there any dependencies of the version?

So, I hope, in README.md, it's good to provide the dependency and its version :)

Perhaps, it requires a set of pytorch, scikit-learn, pandas, matplotlib, etc.

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