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

Enable to use only topK param with similarity algos #784

Open
wants to merge 1 commit into
base: 3.4
Choose a base branch
from

Conversation

tomasonjo
Copy link
Collaborator

@tomasonjo tomasonjo commented Jan 8, 2019

This is an option how to allow users to use only topK parameter as for example:

CALL algo.similarity.cosine.stream(data, {topK:1})

Idea came from #729 and #730 and this PR is a nice and clean solution,
which I think improves user experience and causes less confusion with the user. On the other hand, there are cases where dissimilar relationships would get written back because we don't limit it anymore when providing topK param. This should be more of a problem with smaller datasets and with large datasets this won't usually happen in my experience.

What are your thoughts @mneedham @jexp?

Will add the code to all similarity algos if this is ok.

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.

1 participant