Giter Site home page Giter Site logo

mengtingwan / chainrec Goto Github PK

View Code? Open in Web Editor NEW
54.0 54.0 18.0 6.94 MB

Mengting Wan, Julian McAuley, "Item Recommendation on Monotonic Behavior Chains", in Proc. of 2018 ACM Conference on Recommender Systems (RecSys'18), Vancouver, Canada, Oct. 2018.

License: Apache License 2.0

Python 100.00%
data-mining machine-learning recommender-system

chainrec's People

Contributors

mengtingwan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chainrec's Issues

Confusion about the preprocessing of steam dataset

I downloaded the steam dataset displayed on https://cseweb.ucsd.edu/~jmcauley/datasets.html, and I found that purchase and play behaviors are in the same file named "australian_users_items.json" while review and recommend data are in the file named "steam_reviews.json". To my disappointment, the users in these two files cannot be aligned in that users are indicated with the "user_id" attribute in "australian_users_items" but the "user_name" attribute in "team_reviews.json". Could you release the preprocessed dataset like Yoochoose in your repo?

Error when n_stage >2 ZeroDivisionError

Hi,

I am having the next error when I set the n_stage > 2.

---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
<ipython-input-23-9a97b7bcfeb2> in <module>()
----> 1 test_dataset(DATA_NAME="yoochoose", n_stage=4, method="chainRec_uniform", embed_size=16, lbda=0.1)

<ipython-input-22-87d22fb4e825> in test_dataset(DATA_NAME, n_stage, method, embed_size, lbda)
     13                               target_stage_id=(n_stage-1))
     14         myModel.load_samples(training_samples, validation_samples)
---> 15         myModel.train_edgeOpt()
     16 
     17         myModel.evaluation(myData.data_test, myData.user_item_map, topK=10)

<ipython-input-21-021074151cde> in train_edgeOpt(self)
    185                     _loss_vali += _loss_vali_batch
    186                     count_sample += len(xu1)
--> 187                 _loss_vali /= count_sample
    188 
    189                 if _loss_vali <= _loss_vali_min:

ZeroDivisionError: float division by zero

EDIT: Sorry! I think that I missunderstood what n_stage is. I think that this error is because the yoochoose dataset only have 2 stages, clicks and purchases, right?

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.