Giter VIP home page Giter VIP logo

acam-model's Introduction

ACAM model

  • Usage python3 main.py

  • structure

.
├── code
│   ├── dataset_build.py
│   ├── main.py
│   ├── metrics.py
│   ├── model.py
│   └── train.py
├── data
│   ├── movie
│   │   ├── data
│   │   └── pretrained_embeddings
│   └── music
│       ├── data
│       └── pretrained_embeddings
└── README.md

model.py:The main part of the model, it is realized by pytorch.

train.py:Build model and train the parameters in the model.

metrics.py:Define various evaluation functions(prec, ap, ndcg and rr).

dataset_build.py:Build train set and test set for model.

You can run the model on music dataset by

python3 --dataset music

You can run the model on douban movie dataset by

python3 --dataset movie

Other important parameters are explained as follows:

batch_size:The amount of data for each epoch.

L:The number of history records for each user.

use_KGloss:Whether to use knowledge loss founction.

learning_rate:The learning rate for training model.

method:Which model to used.

d:The dimension for embedding vectors.

acam-model's People

Contributors

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