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

Conversation

@mneedham
Copy link
Contributor

@mneedham mneedham commented Feb 1, 2019

No description provided.

@mneedham mneedham force-pushed the pearson-functions-docs branch from 9b4af48 to a1fae46 Compare February 1, 2019 12:38
@mneedham mneedham force-pushed the pearson-functions-docs branch from 169bd1f to 9492a83 Compare February 4, 2019 12:12
@mneedham mneedham changed the title explaining how to use pearson function Similarity Function Examples Feb 4, 2019
@mneedham
Copy link
Contributor Author

mneedham commented Feb 4, 2019

@davidoliverSP2 figured I may as well add similar examples for the other similarity functions at the same time as for Pearson

Copy link
Collaborator

@davidoliverSP2 davidoliverSP2 left a comment

Choose a reason for hiding this comment

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

Thanks @mneedham

Looks good - a couple of small things I noticed on the Pearson algo (comments inline)

👍

// end::function-cypher[]


In this example we pass in `vectorType: "maps"` as an extra parameter, as well as using the `algo.similarity.asVector` function to construct a vector of maps containing each movie and the corresponding rating.
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing comma.....

In this example, .....



In this example we pass in `vectorType: "maps"` as an extra parameter, as well as using the `algo.similarity.asVector` function to construct a vector of maps containing each movie and the corresponding rating.
We do this because the Pearson similarity algorithm needs to compute the average of *all* the movies that a user has reviewed, not just the ones that they have in common with the user we're comparing them to.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Algo name should be capitalised as per the header: Pearson Similarity algorithm

@mneedham mneedham merged commit 023a400 into neo4j-contrib:3.4 Feb 4, 2019
mneedham added a commit that referenced this pull request Feb 4, 2019
* explaining how to use pearson function

* update result

* Add cosine function example

* typo

* jaccard examples

* update jaccard examples

* euclidean + better explanatory text on the others

* address david's feedback
@mneedham
Copy link
Contributor Author

mneedham commented Feb 4, 2019

@davidoliverSP2 cool! T'is merged in now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants