Giter Club home page Giter Club logo

resys_kgara's Introduction

ReSys_KGARA

This is our implementation for the paper:

Yihao Zhang, Meng Yuan, Chu Zhao, Mian Chen and Xiaoyang Liu. Aggregating Knowledge-aware Graph Neural Network and Adaptive Relational Attention for Recommendation.

Environment Settings

tensorflow = 1.12 numpy = 1.18

Example to run the codes.

python preprocess.py 

python deal_data.py

python main.py

Dataset

We provide three processed datasets: MovieLens 1 Million (ml-1m), LastFM, and BookCrossing.

kg.txt:

  • knowledge graph file;

item_index2entity_id.txt:

  • the mapping from item indices in the raw rating file to entity IDs in the KG;

user_artists.dat: raw rating file of Last.FM

ratings_final.txt:

  • user item interaction file

train.txt:

  • train file
  • each Line is a training instance: userID\t itemID\t rating

test.txt:

  • test file (positive instances)
  • each Line is a testing instance: userID\t itemID\t rating

test_negative.txt:

  • test file (negative instances)
  • each line corresponds to the line of test.rating, containing 100 negative samples.
  • each line is in the format: (userID,itemID)\t negativeItemID1\t negativeItemID2 ...

resys_kgara's People

Contributors

haomiaocqut avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

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.