Giter Site home page Giter Site logo

eges's Introduction

EGES-PIPLINE

implemention of Alibaba's paper: Billion-scale Commodity Embedding for E-commerce Recommendation in Alibaba

update 2020.4.22: 重写pipeline,增加可读性;并增加tf.dataset输入pipeline,适用于large dataset,但每batch运行时间大于feed_dict,排查原因中...

一个EGES的pipeline简单实现,包括以下部分:

  • 数据获取:使用jdata2019比赛中的行为数据(10000条),及商品数据。
  • 从user behaviour history 构建session,session截断依据为最后一个action为下单,或者30分钟内没有action 参考Airbnb Real-time Embedding
  • 根据session list构图,基于node2vec游走采样重新生成session,并加载item对应side info
  • EGES实现,基于word2vec改写
  • 生成embedding并可视化

较为完整的复现了工业界常用的graph embedding pipeline。

randomwalk 代码参考

环境配置

  • python 3.6.5
  • tensorflow == 1.14.0
  • joblib
  • networkx

baseline示例:

python data_process.py
python run_EGES.py

Embedding可视化

品类数据: avatar

eges's People

Contributors

wangzhegeek avatar mingxuanm avatar

Watchers

James Cloos 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.