GithubHelp home page GithubHelp logo

penbor / miesys Goto Github PK

View Code? Open in Web Editor NEW

This project forked from breadada/miesys

0.0 1.0 0.0 4.28 MB

A minimal display advertising system.

License: Apache License 2.0

Python 82.66% JavaScript 0.88% HTML 16.46%

miesys's Introduction

mieSys

最小广告系统

##1.实现功能:

![默认主页](http://7xqgba.com1.z0.glb.clouddn.com/64.jpg)

用户第一次访问系统时,将看到上述页面,与此同时将获得一个服务器分发的Cookie。随后,用户在网站上所有点击行为都将被记录,供后期离线程序使用。

![推荐主页](http://7xqgba.com1.z0.glb.clouddn.com/62.jpg)

当用户第二次访问系统时,将看到上述页面,此时页面广告是根据用户点击历史所推荐并排序的结果。

##2.平台环境

  • Centos 7
  • Python2.7(numpy, scipy, sklearn, pandas; MySQLdb, flask)
  • Nginx 1.6.3
  • uWSGI
  • Mysql

##3. 系统架构

![系统架构](http://oahjqk3ds.bkt.clouddn.com/Architecture2.jpg)

##4.功能模块

  • Cookie分发:标记当前用户,作为本站唯一标识

  • 日志系统:记录用户访问日志和点击日志等

  • 行为定向:根据用户点击记录确定用户的性别和兴趣标签

  • 广告检索:根据用户标签,去广告库检索相关广告

  • CTR预估:对召回的广告进行点击率预估,按照点击率从高到低的顺序将广告放在相应广告位上。

##5.运行方法

  • a)启动Flask

python server.py runserver --host 0.0.0.0

  • b)启动WSGI

uwsgi config.ini

  • c)启动离线计算

python run.py

miesys's People

Contributors

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