Git Product home page Git Product logo

Comments (4)

spawliko avatar spawliko commented on June 14, 2024 1

Thanks for the clarification, I now understand the utility of the current implementation and agree that 1 is not a bug.

from lkpy.

mdekstrand avatar mdekstrand commented on June 14, 2024 1

#310 fixes this for a LensKit 0.14.1 bug-fix release. Will cherry-pick that fix onto the main branch and then close the bug.

from lkpy.

mdekstrand avatar mdekstrand commented on June 14, 2024

2 definitely looks like a bug. Will work on a fix.

Regarding 1: when k is not specified, this is actually a difficult scenario, and it is not clear what the correct behavior is, because it is not clear how many results the system was supposed to return. LensKit's current behavior assumes that the target list length is effectively unbounded (or at least as long as the truth frame), and thus a truncated list represents an inability to recommend further items. Another option is to assume that the list is as long as was requested, and truncate the truth; this is a quite strong assumption, and it means a recommender can obtain a higher NDCG score simply by not recommending more items.

Disambiguating this case is why k was introduced, and evaluations should generally always specify k (should make that clearer in the documentation, perhaps). From the data frame alone, the metric does not have enough information to determine a target length. Do you have any references to what assumptions are made by other implementations or authors when result lists are too short? Happy to discuss this further and be persuaded that this is a bug, but right now it looks like differing expected assumptions for an edge case.

from lkpy.

mdekstrand avatar mdekstrand commented on June 14, 2024

@spawliko thanks! I should be able to have a fix for 2 in testing later today.

from lkpy.

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.