Code Monkey home page Code Monkey logo

Comments (4)

mdekstrand avatar mdekstrand commented on June 11, 2024

negative numbers are documented to indicate "no particular size requested" however, it is convention (which I want to rely on) that -1 should indicate "rank all items"

Hmm. I sympathize. However, I am very hesitant to increase the guarantees implementations are required to maintain.

It is not made clear that implementations are allowed to return fewer than the requested n items (such as if the item recommender enforces a constraint and cannot or will not return more items)

Definitely need to clear that up.

from lenskit.

kluver avatar kluver commented on June 11, 2024

Quoting you on PR997 on the subject of -1 == all:

It does. Actually, any negative value is supposed to be all.

Currently there is no "correct" way to ask for an absolute ranking that I can think of. I consider this a problem.

from lenskit.

mdekstrand avatar mdekstrand commented on June 11, 2024

Currently there is no "correct" way to ask for an absolute ranking that I can think of. I consider this a problem.

I do not automatically disagree.

In conversation with Qian, we've discussed the relationship of retrieval, ranking, and recommendation.

What would you think about specifying that -1 means 'recommend as many as possible'? Leaves the door open for some hypothetical recommender with a strong belief that 10 items are all you need, but much more strongly indicates that any recommender without such a belief should generate as long a list as it can.

from lenskit.

kluver avatar kluver commented on June 11, 2024

I like this resolution. I agree that not all recommenders can produce a complete list (I just built one that will provide a truncated list due to constraints)

So the changes:

  • Document that recommenders are not guaranteed to return n items
  • Document that negative means "as many as possible" which often implies "all", but not always.

from lenskit.

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.