Skip to content

Commit

Permalink
Merge pull request #55 from kkteru/sg_default
Browse files Browse the repository at this point in the history
Fix for issue #54
  • Loading branch information
eliorc authored Jan 9, 2021
2 parents 8f73ca5 + 628ddb3 commit 361e33b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions node2vec/node2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,7 @@ def fit(self, **skip_gram_params) -> gensim.models.Word2Vec:
if 'size' not in skip_gram_params:
skip_gram_params['size'] = self.dimensions

if 'sg' not in skip_gram_params:
skip_gram_params['sg'] = 1

return gensim.models.Word2Vec(self.walks, **skip_gram_params)

0 comments on commit 361e33b

Please sign in to comment.