Coder Social home page Coder Social logo

Comments (8)

ShanleiMu avatar ShanleiMu commented on September 18, 2024
  • Q1
    I think you can generate a field called session_id in your inter atomic file to indicate which session this interaction belongs to. And in each session, the sequence order is dependent on timestamp.
    Then you can write something like these in your config file to load the data.
USER_ID_FIELD: session_id
load_col:
  inter: [session_id, item_id, number of times, timestamp]
  • Should each user id appear only once?
    The same user id can appear in different sessions.

from recbole.

mayaKaplansky avatar mayaKaplansky commented on September 18, 2024

Thanks, and GRU4rec will know to use the session-id field as the session without any further indication?

from recbole.

ShanleiMu avatar ShanleiMu commented on September 18, 2024

Thanks, and GRU4rec will know to use the session-id field as the session without any further indication?

Yes, it is.

from recbole.

mayaKaplansky avatar mayaKaplansky commented on September 18, 2024

Thanks, so in case I have a 'session_id' column, then its OK to have the time stamps repeatable between sessions, since the GRU4Rec will take the 'session_id' as the session key anyway?

from recbole.

mayaKaplansky avatar mayaKaplansky commented on September 18, 2024

Hi
as for this:
USER_ID_FIELD: session_id
load_col:
inter: [session_id, item_id, number of times, timestamp]

So now I understand that by indicating that the user id field is actually the session id, that's how GRU4Rec will know how to use it?

what is "number of times" - is this an example for an inter feature? should I indicate here all my additional columns of inter?

from recbole.

ShanleiMu avatar ShanleiMu commented on September 18, 2024

Thanks, so in case I have a 'session_id' column, then its OK to have the time stamps repeatable between sessions, since the GRU4Rec will take the 'session_id' as the session key anyway?

Yes

from recbole.

ShanleiMu avatar ShanleiMu commented on September 18, 2024

Hi
as for this:
USER_ID_FIELD: session_id
load_col:
inter: [session_id, item_id, number of times, timestamp]

So now I understand that by indicating that the user id field is actually the session id, that's how GRU4Rec will know how to use it?

what is "number of times" - is this an example for an inter feature? should I indicate here all my additional columns of inter?

Your understanding is correct.

number of times is an example for an inter feature.

You only need to indicate the used features in load_col (e.g. the feature used for filtering dataset, the feature used in the model).

from recbole.

mayaKaplansky avatar mayaKaplansky commented on September 18, 2024

Hi according to our thread, I only need to change the USER_ID_FIELD and load_col:.
But according to this: #608 I need to change additional parameters and add my inter features as list items as well. Which one should I follow?
Many thanks!!

from recbole.

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.