-
-
Notifications
You must be signed in to change notification settings - Fork 30
Node2vec prototype #247
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
Node2vec prototype #247
Conversation
|
As for the |
That would make sense, but even when perform such a replacement, I get Any ideas @yuehhua? |
|
You should call |
I am! That's the thing. It's still having namespace issues even when I call https://github.com/jarbus/GeometricFlux.jl/blob/node2vec/src/graph_embedding/node2vec.jl#L108-L124 |
|
Sorry, I'm busy these days. I checked calling |
|
Oh I figured it out! I was using the master branch instead of the node2vec branch somehow when adding the package. |
|
@yuehhua I'm thinking about switching to using Some notes:
|
Yes, I am currently trying to make them compatible.
So, you want |
|
@yuehhua It's no longer needed, as I figured out a workaround using the FeaturedGraph's adjacency matrix, but for anything regarding graph traversal, functions like |
|
I have rebased this branch to the new release. Please update to your local repo. |
|
@yuehhua I'm trying to switch to a FeaturedGraph backend for node2vec, and think that it would be really helpful to include functions like |
|
Does yuehhua/GraphSignals.jl#76 fit your need? |
@yuehhua Unfortunately not. |
|
OK, I will put |
|
@yuehhua Thanks for all of your help so far :) I have another question, which will hopefully be my last: The node2vec implementation to support both directed and weighted graphs, directed seems simple enough now that I can use |
|
Actually, I just pushed using the adjacency matrix of the SparseGraph, which looks like |
|
Please use yuehhua/GraphSignals.jl#78 |
|
We should be good to go. I benchmarked on Cora, takes about 0.7 seconds to conduct 27k walks, of length 80, seems about 15 times faster than the python implementation from the original paper: https://github.com/aditya-grover/node2vec |
Still very much a work in progress, right now the example doesn't run because GraphSignals, Graphs GeometricFlux, have name collisions, and I'm also getting the error
LoadError: UndefVarError: neighbors not definedeven though we import Graphs insrc/GeometricFlux.jl. I'm new to Julia package development so not entirely sure what's going on here. However, I tested the code by including all functionality in a script and all the functions work as intended.