Giter VIP home page Giter VIP logo

easyrecom's Introduction

Easy Recommend FrameWork

一个简单的推荐框架

Version

  • 1.0 支持基于物品相似度的推荐

特点

  • 开箱即用,简单方便实现现有系统推荐功能
  • 替换掉input文件夹中的物料文件和用户文件,即可实现自己的推荐系统
  • 词向量库可替换,引擎内置通用词向量,可替换餐饮等具体行业相关的词向量库

安装步骤

  • 首先安装jieba,切换到jieba目录运行 python setup.py install
  • 确认物料input目录user文件夹的以user_id命名的用户喜好文件
  • 确认物料input目录post文件夹的post_online是要推荐的物料
  • 执行src目录下的python run.py
  • 查看output下的推荐结果

运行原理

  • 将物料库中的title一个个读取出来,用jieba对title做分词处理
  • 把上一步中分割的词去词向量库中把每个词对应的词向量取出
  • 把每个词的词向量相加,得到整个title的词向量
  • 依次处理整个词向量库的title,转换为句子向量
  • 将用户喜爱的物料的title也转换成句子向量
  • 将用户喜爱的物料的向量依次与物料库每个向量,取余弦距离,计算相似度
  • 取相似度高的物料,推荐给用户

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.