Giter Club home page Giter Club logo

vbpr's Introduction

VBPR

A simple version of VBPR.

Two files are needed to run "VBPR.py"

  1. "image_feature.csv" The first column of the csv file is item id, while each line is the corresponding feature of the item.

    This file is to build a dictionary of item_id and item_feature : self.imageFeatures.

  2. "feedback_file.json" The file stores the feedback data of users & items, which has the structure as follows:

     { "user_id1" : { "item_id_1", "item_id_2", ... },
       "user_id2" : { "item_id_i", "item_id_j", ... },
        ... }
    

    This file is to build the user-item relation map: self.R.

You need to complete the code in line 113-114 with the path of the above files.

baidu drive link: https://pan.baidu.com/s/1FIsLca0TZW_I4wGmfDwpDw cue:5j3g

google drive link: https://drive.google.com/open?id=1yOjxhqI19OL2r8Rsf_SU8XTPBGE4F-Rg


The update edition

An end to end VBPR, which is no need to load all image features at begining.

Three files are needed to run "VBPR_update.py"

  1. "user_idx.json" & "item_idx.json". Structures are as follows,

    { "user_0": 0, "user_1": 1, ..., "user_n": n-1 } { "item_0": 0, "item_1": 1, ..., "item_m": m-1 }

  2. Your own rating file. The interaction between users and items are needed.

Step to run "VBPR_update.py"

  1. model = VBPR(K=?, K2=?)

  2. model.load_training_data() # filled with "user_idx.json" & "item_idx.json"

  3. build data fed in placeholders, and feed their to the network.

vbpr's People

Contributors

hello-dx avatar

Stargazers

 avatar Yungi avatar Kexin Wang avatar  avatar Xiao-Jun Wang(王晓军) avatar  avatar  avatar tiantianjiayou avatar  avatar zhujiem avatar  avatar Albert Tavares de Almeida avatar Matúš Chládek avatar  avatar Conrad Lee avatar Zhangyanchao avatar HelloDavid avatar

vbpr's Issues

关于feedback_file文件中item_id的疑问

您好,请问feedback_file文件中的内容是用户见到过的图像id还是用户购买过的图像id?我对原论文中“积极反馈的项目”这一词不是很理解。

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.