Giter VIP home page Giter VIP logo

Comments (3)

robrix avatar robrix commented on June 10, 2024

Instead, we want something more like locality-sensitive hashing, which has the continuity property. I’ve also been pointed towards principal component analysis, tho I don’t know much about it just yet.

from semantic.

robrix avatar robrix commented on June 10, 2024

Some references following a conversation with @kavgan:

from semantic.

robrix avatar robrix commented on June 10, 2024

The conclusion I arrived at from my conversation with @kavgan:

Reading further, I realize that I misunderstood the roles of LSH, MinHash, and shingling. We’ve got ~three different problems here:

  • A similarity metric for labels. Our current system just hashes them so similar text in e.g. leaf nodes is essentially ignored; shingling and so forth would seem applicable.
  • A similarity metric for subtrees. We currently use random-walk similarity with the problems detailed in that issue. The Jaccard similarity on bags of p,q-grams seems applicable, with MinHashing being an efficient approximation thereof.
  • A mechanism to select the most-similar pairs of subtrees from two lists. We currently use a k-d tree for nearest-neighbour lookups based on the random-walk similarity, with the problems that entails, plus some biases that have been hard to eliminate. LSH comes into play here, grouping candidate pairs together into bands.

So where I’ve been focusing on alternatives for computing the d-dimensional unit vectors which RWS entails (specifically, how to do it without hashing or the random number generator), LSH would eliminate the need for these unit vectors altogether.

Notably, each sub-problem is orthogonal. I’d suggest we tackle MinHashing and LSH before shingling; improvements to leaf similarity will be most noticeable with improvements to small branch similarity already in place.

from semantic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.