Giter VIP home page Giter VIP logo

go-ftrl's Introduction

go-ftrl

FTRL-Proximal for golang. From Google's paper: Ad Click Prediction: a View from the Trenches

Install

go get -U github.com/cyy0523xc/go-ftrl

测试数据

见:./libsvm_data.txt

格式采用libsvm算法所使用的格式,如:

1 16:1 19:1 24:1 26:1 58:1 682:1 733:1 764:1 778:1 788:1 1247:1 1251:1 1256:1 1258:1
0 16:1 19:1 24:1 45:1 262:1 682:1 733:1 764:1 778:1 788:1 1247:1 1251:1 1256:1 1258:1
0 16:1 19:1 24:1 48:1 353:1 682:1 733:1 764:1 778:1 788:1 1247:1 1251:1 1256:1 1258:1
0 16:1 19:1 24:1 43:1 224:1 682:1 733:1 764:1 778:1 788:1 1247:1 1251:1 1256:1 1258:1

说明:

  • 其中第一列的0,1是值,例如广告点击则为1, 不点击则为0。
  • 后面的index:feature_val, 冒号前面的为特征序号,后面的则为特征值
  • 特征之间有且只有一个空格

训练与测试部分


预测部分

go-ftrl's People

Contributors

cyy0523xc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

0i leetcode-notes

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.