Giter Site home page Giter Site logo

aha's Introduction

Ad Hoc Analytics

高性能即席分析引擎:每秒处理TB量级消费者画像数据

使用方法:

cd tools
go run lookup_server.go --data_files data.csv --tag_option_file tag_option.csv

其中 data.csv 的格式为(参见testdata/data.txt)

日期,用户id,tag1:option1,tag2:option2,...

其中日期为数据采集的日期,用户 id 为 uint64 整数,tag和 option 也都是整数

tag_option.csv 格式为(参见 data/tag_option.csv )

tag id,tag name,option id,option name,category name

category, tag, option 的关系如下

category 1:
  tag 1: option 1
  tag 1: option 2
  tag 2: option 3
  tag 3: option 4
category 2:
  tag 4: option 5
  tag 4: option 6

其中跨 category 的 tag id 不会发生重复,跨 tag 的 option id 不会发生重复。

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.