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

Code-style changes in PR#1248 #1394

Merged
merged 3 commits into from
Jun 14, 2017

Conversation

chinmayapancholi13
Copy link
Contributor

This PR implements some code-style changes in #1248 as suggested by @piskvorky here.

@@ -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",
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks.

@menshikh-iv
Copy link
Contributor

Thanks, @chinmayapancholi13.

@menshikh-iv menshikh-iv merged commit 614cd05 into piskvorky:develop Jun 14, 2017
@piskvorky
Copy link
Owner

@chinmayapancholi13 any reason why Keras_w2v is capital K?

Variables in Python should be lowercase by convention.

@chinmayapancholi13
Copy link
Contributor Author

@piskvorky Yes! My apologies that I wasn't vigilant enough for this case. I'll fix this in one of the following related PRs.

@piskvorky
Copy link
Owner

No problem :) As long we're converging!

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.

3 participants