-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Code-style changes in PR#1248 #1394
Code-style changes in PR#1248 #1394
Conversation
docs/notebooks/keras_wrapper.ipynb
Outdated
@@ -252,7 +217,9 @@ | |||
"source": [ | |||
"word_a = 'graph'\n", | |||
"word_b = 'trees'\n", | |||
"output = keras_model.predict([np.asarray([model.wv.vocab[word_a].index]), np.asarray([model.wv.vocab[word_b].index])]) # output is the cosine distance between the two words (as a similarity measure)\n", | |||
"output = keras_model.predict([np.asarray([model.wv.vocab[word_a].index]), np.asarray([model.wv.vocab[word_b].index])])\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move comment above this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks.
Thanks, @chinmayapancholi13. |
@chinmayapancholi13 any reason why Variables in Python should be lowercase by convention. |
@piskvorky Yes! My apologies that I wasn't vigilant enough for this case. I'll fix this in one of the following related PRs. |
No problem :) As long we're converging! |
This PR implements some code-style changes in #1248 as suggested by @piskvorky here.