Giter VIP home page Giter VIP logo

Comments (4)

ekzhu avatar ekzhu commented on July 17, 2024

On the different top-k query results: this is expected. Because the methods are all approximate rather than exact, results may not be 100% accurate. The common work flow of LSH Forest for top-k is to first retrieve "top-r" results from the index, sort the r number of results by exact similarity computation (or using MinHash signatures), and then output the top-k. r is bigger than k (e.g. 10x bigger).

For MinHashLSH, you cannot directly control the number of results returned. When your result sizes are large you may want to use a higher threshold (e.g. 0.9). Have multiple LSH indexes optimized for a series of descending thresholds can help too.

from datasketch.

pandasMX avatar pandasMX commented on July 17, 2024

Thanks for your suggestions! You mentioned "Have multiple LSH indexes optimized for a series of descending thresholds can help too". Can you give me some more guidance on how can I achieve this? Thanks!

from datasketch.

ekzhu avatar ekzhu commented on July 17, 2024

Nothing fancy. What I meant is just some version of the following:

lshes = {0.9 : MinHashLSH(threshold=0.9),
              0.8: MinHashLSH(threshold=0.8),
              0.7: MinHashLSH(threshold=0.7),
              0.6: MinHashLSH(threshold=0.6),
              0.5: MinHashLSH(threshold=0.5),}

So your query processing can start with the highest threshold, try the lshes in descending order of thresholds, until you get enough query results.

from datasketch.

pandasMX avatar pandasMX commented on July 17, 2024

OK, I understand. Thanks!

from datasketch.

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.