Coder Social home page Coder Social logo

Comments (4)

FeeeeK avatar FeeeeK commented on June 12, 2024 1

Maybe make priority settings by source indices? something like priority = [6, 5]
Then index 6 in the results will be the first and 5 the second

from pysaucenao.

rainyroads avatar rainyroads commented on June 12, 2024

Additionally we should probably consider adding a flag to disable this behavior in init. Something like priority_mode = True or so.

from pysaucenao.

rainyroads avatar rainyroads commented on June 12, 2024

Reconsidering whether we should actually do this in this library or leave it to the applications using this logic to handle this.

from pysaucenao.

rainyroads avatar rainyroads commented on June 12, 2024

@FeeeeK Yeah I was thinking of doing something just like that.

My hesitation is when doing this, you probably want to balance similarity in there too.

So, if you have something that's a 90% match on Pixiv for example, but has a 55% match on Anime, you probably don't want to prioritize the anime result due to the vastly lower similarity rating.

Could maybe add another argument to handle the maximum percentage difference to accept when prioritizing results (e.g. only prioritize anime results if it's within 10% similarity of the highest rated result).

I think that would work actually. Just need to figure out a good name for that paremeter that easily conveys what it does, lol.

Maybe priority_tolerance = 10.0 or so.

from pysaucenao.

Related Issues (7)

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.