Coder Social home page Coder Social logo

alfm's Introduction

Aspect-Aware Latent Factor Model (ALFM)

This is our implementation for the paper:

Zhiyong Cheng, Ying Ding, Lei Zhu, Mohan Kankanhalli. Aspect-Aware Latent Factor Model: Rating Prediction with Ratings and Reviews. In Proceedings of WWW '18, Lyon, France, April 23-27, 2018.

Our model is worked in two steps: in the first step, a topic model is used to extract the topic representation of aspects; in the second step, the resutls of the topic model are integrated into an aspect-aware latent factor model to estimate users and items latent factors as well as factor weights.

Please cite our WWW'18 paper if you use our codes. Thanks!

Author: Dr. Zhiyong Cheng (https://sites.google.com/view/zycheng)

Codes

Our code is in java:

"topicmodel" package: the implementation of the topic model: -- please run "tuningAspectNumberandTopicNumber.java" to get the results by setting data path correctly

"alfm" package: the implementation of the aspect-aware latent factor model -- please run “topicFactorTuning.java" to get the results.

Notice that alfm is implemented based on "LibRec". We already include the necessary 'jar' packages in the 'lib' fold

Examples:

In the "data" fold, we put the "Music Instruments" dataset to show the data format used in the codes.

Data format: "userIndex \t\t itemIndex \t\t rating \t\t reviews". Sentences in reviews are seperated by "||".

The model can be tested on this dataset by running "tuningAspectNumberandTopicNumber.java" frist and then “topicFactorTuning.java"

The topic results (based on 5 aspects and 5 topics) are saved in "model/topicmodel/"

Results of "alfm" are saved into "model/alfm/"

alfm's People

Contributors

hustlingchen 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.