Giter VIP home page Giter VIP logo

rbm-movie's Introduction

RBM-movie

基于受限玻尔兹曼机(RBM)的电影推荐系统实例

前言

本项目代码是基于Deep Learning with TensorFlow IBM Cognitive Class ML0120EN的文章代码实现, 使用http://grouplens.org/datasets/movielens/1m的电影数据集进行训练,并对目标用户进行推荐

目录

  • 数据预处理(dat转csv)
  • 数据预处理(csv转dict)
  • RBM模型训练
  • RBM模型预测(给目标用户推荐)

快速开始

请自行下载数据集http://grouplens.org/datasets/movielens/1m,解压到data/目录中

  • 数据预处理(dat转csv)
    python datprocess.py <dat path> <csv path>
    
    如:python datprocess.py ./data ./data
  • 数据预处理(csv转dict)
    python csvprocess.py <csv path> <dict path>
    
    如:python csvprocess.py ./data ./data
  • RBM模型训练
    python train.py <dict path> <model path>
    
    如:python train.py ./data ./data
  • RBM模型预测(给目标用户推荐)
    python predict.py <dict path> <model path> <log path> <user id>
    
    如:python predict.py ./data ./data ./data 1

其他

我的github:https://github.com/JonLagrange

rbm-movie's People

Contributors

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