Coder Social home page Coder Social logo

Question about Top N > 100 about qrec HOT 3 CLOSED

coder-yu avatar coder-yu commented on July 21, 2024
Question about Top N > 100

from qrec.

Comments (3)

Coder-Yu avatar Coder-Yu commented on July 21, 2024

The length of itemSet[item] is less than N because some items which appear in the training set have been removed from the itemSet. So it is natural to get an IndexError.
You could change 100 to a larger value, however, it is wrong to set it to the number of items. Changing base class is not suggested unless you can improve the effectiveness or need new features.

from qrec.

statusrank avatar statusrank commented on July 21, 2024

The length of itemSet[item] is less than N because some items which appear in the training set have been removed from the itemSet. So it is natural to get an IndexError.
You could change 100 to a larger value, however, it is wrong to set it to the number of items. Changing base class is not suggested unless you can improve the effectiveness or need new features.

Thansks!
"Items which appear in training dataset are removed from the itemSet".This means ,if the user_u have $item_i$ in the training set,when we run our model on test set, we should ignore $item_i$ for user_u?
In my experiment,for per user,I need sort all items except items which is appeared in the training set for this user.
If the RecQ can do this, how do i know the number of items left for per user? thanks

from qrec.

Coder-Yu avatar Coder-Yu commented on July 21, 2024

Actually, no one cares the number of items left for per user. In your experiments, you just need to calculate the average performance. Paying much attention to single user is meaningless.

from qrec.

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.