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

Items in cluster improvements #1

Closed
wants to merge 1 commit into from
Closed

Conversation

joseribes
Copy link

Creates specific methods to compare items input and centroids values

@@ -56,6 +56,46 @@ function cosineDistance2(terms, centroidTerms, scale) {
}


function cosineItemsDistance2(inputItems, centroidItems, scale) {
Copy link
Owner

Choose a reason for hiding this comment

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

I guess you define a separate function in order not to mix with the existing one, but I think they can be merged into one. Maybe in a later PR...

@joseribes joseribes closed this Jan 4, 2016
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.

2 participants