Support for more connectivity similarity metrics#11
Open
Conversation
- prepare_cosine_matrix -> prepare_similarity_matrix (old name kept as alias) - cosine_heatmap -> connectivity_heatmap (old name kept as alias) - Add distfun parameter to connectivity_heatmap for pluggable distance
- Add methods to Imports (needed for as() in similarity code) - Add samples/ to .gitignore and .Rbuildignore - Add Jaccard, binarised etc to spelling wordlist
- jaccard_sim() with weighted parameter for binary and weighted Jaccard - connectivity_similarity() as generic dispatcher (cosine/jaccard/weighted_jaccard) - Binary Jaccard uses sparse crossprod with in-place slot transformation - Weighted Jaccard uses threshold decomposition (sum of sparse crossprods) - Comprehensive tests including hand-computed values and naive reference
A form of weighted jaccard but potentially faster to compute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
idea is to have a plugin architecture for coconatfly clustrering to use a range of unctions besides cosine_sim