Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Shape issue with cosine_similarity #5

Open
EastBayEv opened this issue Nov 18, 2020 · 2 comments
Open

Shape issue with cosine_similarity #5

EastBayEv opened this issue Nov 18, 2020 · 2 comments
Assignees

Comments

@EastBayEv
Copy link
Contributor

Update print("Cosine similarity between first and second book:")

cosine_similarity needs updating

@EastBayEv
Copy link
Contributor Author

Hi @Akesari12 -- Can you commit and push these changes? Please close this comment when you are done. Let me know if you have any questions. Thanks!

@rbarreto
Copy link
Contributor

solution: You could actually just use your original code and just add these brackets!

print("Cosine similarity between first and second book: " + str(cosine_similarity([dtm.iloc[0,:]], [dtm.iloc[1,:]])))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants