Giter VIP home page Giter VIP logo

newsrecsys's Introduction

说明

本项目为《推荐系统开发实战》一书的演示案例,采用前后端分离实现,后端使用的是Python的Django框架,前端使用的是Vue,数据库为MySQL,禁止用做商业用户,如有需要联系我授权

注:《推荐系统开发实战》已经在各大电商上线,感兴趣的朋友可以进行关注!

实现思路

  • 各大主题下的热度排序
  • 每篇新闻的关键词抽取和展示
  • 基于item的推荐
  • 热度榜(注意覆盖度)
  • 为你推荐(不同用户行为不同看到的为你推荐也不同,指定几个用户作为展示)

后端依赖

  • Python版本为3.6
  • Python包和对应的版本在NewsRecSys/NewsRec/z-others/files/requirement.txt文件中
  • 安装依赖为 pip install -r requirement.txt

前端说明

  • 依赖Node.js,版本为10.13

运行说明

  • mysql新建newsrec数据库,将NewsRecSys/NewsRec/z-others/files/newsrec.sql 文件导入
  • 修改 NewsRecSys/NewsRec/NewsRec/settings.py 文件中的ALLOWED_HOSTS为本地IP地址和本地mysql配置信息
  • 修改 NewsRecSys/NewsRec-Vue/config/index.js 中的 serverUrl
  • 修改 NewsRecSys/NewsRec-Vue/src/assets/js/linkBase.js 中的 serverUrl
  • 进入 NewsRecSys/NewsRec 执行python manage.py runserver 0.0.0.0:8000
  • 进入 NewsRecSys/NewsRec-Vue 执行npm install / npm run dev
  • 浏览器输入 http://127.0.0.1:8001 访问

相关说明

About Me

ID:Thinkgamer

Email:[email protected]

微信:


微信公众号:【搜索与推荐Wiki】

注明:禁止用作商业用途

newsrecsys's People

Contributors

thinkgamer avatar

Watchers

 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.