question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cross-similarity function

See original GitHub issue

I’d love to have a version of librosa.segment.recurrence_matrix that compares two arbitrary sequences. A lot of the code in the recurrence_matrix function will extend to the two sequence case, happy to make a PR. Any suggestions on how such a function should work within the library?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bmcfeecommented, Jun 25, 2019

Fixed by merging #904

1reaction
bmcfeecommented, Oct 22, 2018

I guess we want the knn classifier to be relative to (i.e. fit to) the features in the first sequence, and then the connections are built from the features in the second sequence? Should we make this more flexible?

The NearestNeighbors object is a data structure, not a classifier. If you have two arrays X1 and X2, of durations n and m respectively, the output of cross_similarity should have shape (n, m). The entries (i, j) should correspond to X1[:, i] being a nearest neighbor of X2[:, j]. So you should fit on X1 and predict on X2, if that makes sense?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cosine similarity - Wikipedia
In data analysis, cosine similarity is a measure of similarity between two sequences of numbers. For defining it, the sequences are viewed as...
Read more >
Cosine Similarity - an overview | ScienceDirect Topics
Cosine similarity measures the similarity between two vectors of an inner product space. It is measured by the cosine of the angle between...
Read more >
Is there a loss function that measures the cross similarity ...
The previous answer is good, and it seems like you are computing pairwise cosine similarity, if it is the case, it's better to...
Read more >
Similarity Check - Crossref
Similarity Check allows editors to upload a paper, and instantly produces a report highlighting potential matches and indicating if and how the paper...
Read more >
Discovery of Cross-Similarity in Data Streams - ResearchGate
In this paper, we focus on the problem of finding partial similarity between data streams. Our solution relies on dynamic time warping (DTW) ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found