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

Adding single context window #5

Merged
merged 3 commits into from Apr 30, 2022
Merged

Adding single context window #5

merged 3 commits into from Apr 30, 2022

Conversation

skojaku
Copy link
Owner

@skojaku skojaku commented Apr 20, 2022

Update

  • Implemented a single window that extends leftward or rightward of a center node. This feature may be useful to embed directed networks. Available only for the pytorch version of the residual2vec

How to specify the context window types

The residual2vec_sgd takes a new argument context_window_type that specifies the type of context window. The default is double:

context_window_type = 'left' # {'left', 'right', 'double'} 
rv.residual2vec_sgd(context_window_type=context_window_type)

context_window_type="double" specifies the context window that extends both left and right of a focal node. context_window_type="left" or ="right" specifies that extends left or right, respectively.

@skojaku skojaku merged commit ea10caa into main Apr 30, 2022
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

Successfully merging this pull request may close these issues.

None yet

1 participant