infinitezxc / kaggle-avazu Goto Github PK
View Code? Open in Web Editor NEWCode for the 3rd place finish for Avazu Click-Through Rate Prediction
License: Other
Code for the 3rd place finish for Avazu Click-Through Rate Prediction
License: Other
rzai@rzai00:~/prj/kaggle-avazu-3rd/gbdt$ make
g++ -Wall -Wconversion -O2 -fPIC -std=c++0x -fopenmp -o gbdt src/train.cpp src/common.cpp src/timer.cpp src/gbdt.cpp
In file included from src/common.h:13:0,
from src/train.cpp:4:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/pmmintrin.h:31:3: error: #error "SSE3 instruction set not enabled"
^
In file included from src/common.h:13:0,
from src/common.cpp:7:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/pmmintrin.h:31:3: error: #error "SSE3 instruction set not enabled"
^
In file included from src/common.h:13:0,
from src/gbdt.h:5,
from src/gbdt.cpp:7:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/pmmintrin.h:31:3: error: #error "SSE3 instruction set not enabled"
^
make: *** [gbdt] Error 1
rzai@rzai00:~/prj/kaggle-avazu-3rd/gbdt$
rzai@rzai00:~/prj/kaggle-avazu-3rd/fm$ tree
.
├── Makefile
└── src
├── common.cpp
├── common.h
├── timer.cpp
├── timer.h
└── train.cpp
1 directory, 6 files
rzai@rzai00:/prj/kaggle-avazu-3rd/fm$ git remote -v/prj/kaggle-avazu-3rd/fm$
origin https://github.com/infinitezxc/kaggle-avazu.git (fetch)
origin https://github.com/infinitezxc/kaggle-avazu.git (push)
rzai@rzai00:
rzai@rzai00:/prj/kaggle-avazu-3rd/fm$/prj/kaggle-avazu-3rd/fm$ make clean
rzai@rzai00:
rm -f fm
rzai@rzai00:~/prj/kaggle-avazu-3rd/fm$ make
g++ -Wall -Wconversion -O3 -fPIC -std=c++0x -fopenmp -o fm src/train.cpp src/common.cpp src/timer.cpp
In file included from src/common.h:10:0,
from src/train.cpp:6:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/pmmintrin.h:31:3: error: #error "SSE3 instruction set not enabled"
^
In file included from src/train.cpp:6:0:
src/common.h: In function ‘float wTx(const Problem&, Model&, uint32_t, float, float, float, bool)’:
src/common.h:141:34: error: ‘_mm_hadd_ps’ was not declared in this scope
XMMt = _mm_hadd_ps(XMMt, XMMt);
^
In file included from src/common.h:10:0,
from src/common.cpp:5:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/pmmintrin.h:31:3: error: #error "SSE3 instruction set not enabled"
^
In file included from src/common.cpp:5:0:
src/common.h: In function ‘float wTx(const Problem&, Model&, uint32_t, float, float, float, bool)’:
src/common.h:56:5: error: ‘__m128’ was not declared in this scope
__m128 const XMMv = _mm_set1_ps(prob.v);
^
src/common.h:56:12: error: expected ‘;’ before ‘const’
__m128 const XMMv = _mm_set1_ps(prob.v);
^
src/common.h:57:12: error: expected ‘;’ before ‘const’
__m128 const XMMkappav = _mm_set1_ps(kappa*prob.v);
^
src/common.h:58:12: error: expected ‘;’ before ‘const’
__m128 const XMMeta = _mm_set1_ps(eta);
^
src/common.h:59:12: error: expected ‘;’ before ‘const’
__m128 const XMMlambda = _mm_set1_ps(lambda);
^
src/common.h:60:12: error: expected ‘;’ before ‘const’
__m128 const XMMones = _mm_set1_ps(1.0f);
^
src/common.h:61:12: error: expected ‘;’ before ‘XMMt’
__m128 XMMt = _mm_setzero_ps();
^
src/common.h:84:32: error: expected ‘;’ before ‘XMMw1’
__m128 XMMw1 = _mm_load_ps(w1+d);
^
src/common.h:85:32: error: expected ‘;’ before ‘XMMw2’
__m128 XMMw2 = _mm_load_ps(w2+d);
^
src/common.h:87:32: error: expected ‘;’ before ‘XMMwg1’
__m128 XMMwg1 = _mm_load_ps(wg1+d);
^
src/common.h:88:32: error: expected ‘;’ before ‘XMMwg2’
__m128 XMMwg2 = _mm_load_ps(wg2+d);
^
src/common.h:90:32: error: expected ‘;’ before ‘XMMg1’
__m128 XMMg1 = _mm_add_ps(
^
src/common.h:93:32: error: expected ‘;’ before ‘XMMg2’
__m128 XMMg2 = _mm_add_ps(
^
src/common.h:97:25: error: ‘XMMwg1’ was not declared in this scope
XMMwg1 = _mm_add_ps(XMMwg1, _mm_mul_ps(XMMg1, XMMg1));
^
src/common.h:97:64: error: ‘XMMg1’ was not declared in this scope
XMMwg1 = _mm_add_ps(XMMwg1, _mm_mul_ps(XMMg1, XMMg1));
^
src/common.h:97:76: error: ‘_mm_mul_ps’ was not declared in this scope
XMMwg1 = _mm_add_ps(XMMwg1, _mm_mul_ps(XMMg1, XMMg1));
^
src/common.h:97:77: error: ‘_mm_add_ps’ was not declared in this scope
XMMwg1 = _mm_add_ps(XMMwg1, _mm_mul_ps(XMMg1, XMMg1));
^
src/common.h:98:25: error: ‘XMMwg2’ was not declared in this scope
XMMwg2 = _mm_add_ps(XMMwg2, _mm_mul_ps(XMMg2, XMMg2));
^
src/common.h:98:64: error: ‘XMMg2’ was not declared in this scope
XMMwg2 = _mm_add_ps(XMMwg2, _mm_mul_ps(XMMg2, XMMg2));
^
src/common.h:100:25: error: ‘XMMw1’ was not declared in this scope
XMMw1 = _mm_sub_ps(XMMw1, _mm_mul_ps(XMMeta,
^
src/common.h:100:62: error: ‘XMMeta’ was not declared in this scope
XMMw1 = _mm_sub_ps(XMMw1, _mm_mul_ps(XMMeta,
^
src/common.h:101:63: error: ‘_mm_rsqrt_ps’ was not declared in this scope
_mm_mul_ps(_mm_rsqrt_ps(XMMwg1), XMMg1)));
^
src/common.h:101:73: error: ‘_mm_sub_ps’ was not declared in this scope
_mm_mul_ps(_mm_rsqrt_ps(XMMwg1), XMMg1)));
^
src/common.h:102:25: error: ‘XMMw2’ was not declared in this scope
XMMw2 = _mm_sub_ps(XMMw2, _mm_mul_ps(XMMeta,
^
src/common.h:105:49: error: ‘_mm_store_ps’ was not declared in this scope
_mm_store_ps(w1+d, XMMw1);
^
src/common.h:111:32: error: expected ‘;’ before ‘XMMw1’
__m128 XMMw1 = _mm_load_ps(w1+d);
^
src/common.h:112:32: error: expected ‘;’ before ‘XMMwg1’
__m128 XMMwg1 = _mm_load_ps(wg1+d);
^
src/common.h:113:32: error: expected ‘;’ before ‘XMMg1’
__m128 XMMg1 = _mm_add_ps(_mm_mul_ps(XMMlambda, XMMw1),_mm_mul_ps(XMMkappav, XMMones));
^
src/common.h:114:25: error: ‘XMMwg1’ was not declared in this scope
XMMwg1 = _mm_add_ps(XMMwg1, _mm_mul_ps(XMMg1, XMMg1));
^
src/common.h:114:64: error: ‘XMMg1’ was not declared in this scope
XMMwg1 = _mm_add_ps(XMMwg1, _mm_mul_ps(XMMg1, XMMg1));
^
src/common.h:114:76: error: ‘_mm_mul_ps’ was not declared in this scope
XMMwg1 = _mm_add_ps(XMMwg1, _mm_mul_ps(XMMg1, XMMg1));
^
src/common.h:114:77: error: ‘_mm_add_ps’ was not declared in this scope
XMMwg1 = _mm_add_ps(XMMwg1, _mm_mul_ps(XMMg1, XMMg1));
^
src/common.h:115:25: error: ‘XMMw1’ was not declared in this scope
XMMw1 = _mm_sub_ps(XMMw1, _mm_mul_ps(XMMeta,_mm_mul_ps(_mm_rsqrt_ps(XMMwg1), XMMg1)));
^
src/common.h:115:62: error: ‘XMMeta’ was not declared in this scope
XMMw1 = _mm_sub_ps(XMMw1, _mm_mul_ps(XMMeta,_mm_mul_ps(_mm_rsqrt_ps(XMMwg1), XMMg1)));
^
src/common.h:115:99: error: ‘_mm_rsqrt_ps’ was not declared in this scope
XMMw1 = _mm_sub_ps(XMMw1, _mm_mul_ps(XMMeta,_mm_mul_ps(_mm_rsqrt_ps(XMMwg1), XMMg1)));
^
src/common.h:115:109: error: ‘_mm_sub_ps’ was not declared in this scope
XMMw1 = _mm_sub_ps(XMMw1, _mm_mul_ps(XMMeta,_mm_mul_ps(_mm_rsqrt_ps(XMMwg1), XMMg1)));
^
src/common.h:116:49: error: ‘_mm_store_ps’ was not declared in this scope
_mm_store_ps(w1+d, XMMw1);
^
src/common.h:125:28: error: expected ‘;’ before ‘const’
__m128 const XMMw1 = _mm_load_ps(w1+d);
^
src/common.h:126:28: error: expected ‘;’ before ‘const’
__m128 const XMMw2 = _mm_load_ps(w2+d);
^
src/common.h:128:25: error: ‘XMMt’ was not declared in this scope
XMMt = _mm_add_ps(XMMt,
^
src/common.h:129:54: error: ‘XMMw1’ was not declared in this scope
_mm_mul_ps(_mm_mul_ps(XMMw1, XMMw2), XMMv));
^
src/common.h:129:61: error: ‘XMMw2’ was not declared in this scope
_mm_mul_ps(_mm_mul_ps(XMMw1, XMMw2), XMMv));
^
src/common.h:129:66: error: ‘_mm_mul_ps’ was not declared in this scope
_mm_mul_ps(_mm_mul_ps(XMMw1, XMMw2), XMMv));
^
src/common.h:129:69: error: ‘XMMv’ was not declared in this scope
_mm_mul_ps(_mm_mul_ps(XMMw1, XMMw2), XMMv));
^
src/common.h:129:73: error: ‘_mm_mul_ps’ was not declared in this scope
_mm_mul_ps(_mm_mul_ps(XMMw1, XMMw2), XMMv));
^
src/common.h:129:73: error: redeclaration of ‘_mm_mul_ps’
src/common.h:129:66: note: previous declaration ‘_mm_mul_ps’
_mm_mul_ps(_mm_mul_ps(XMMw1, XMMw2), XMMv));
^
src/common.h:129:74: error: ‘_mm_add_ps’ was not declared in this scope
_mm_mul_ps(_mm_mul_ps(XMMw1, XMMw2), XMMv));
^
src/common.h:131:25: error: ‘XMMt’ was not declared in this scope
XMMt = _mm_add_ps(XMMt,_mm_mul_ps(_mm_mul_ps(XMMw1, XMMones), XMMv));
^
src/common.h:131:70: error: ‘XMMw1’ was not declared in this scope
XMMt = _mm_add_ps(XMMt,_mm_mul_ps(_mm_mul_ps(XMMw1, XMMones), XMMv));
^
src/common.h:131:77: error: ‘XMMones’ was not declared in this scope
XMMt = _mm_add_ps(XMMt,_mm_mul_ps(_mm_mul_ps(XMMw1, XMMones), XMMv));
^
src/common.h:131:84: error: ‘_mm_mul_ps’ was not declared in this scope
XMMt = _mm_add_ps(XMMt,_mm_mul_ps(_mm_mul_ps(XMMw1, XMMones), XMMv));
^
src/common.h:131:87: error: ‘XMMv’ was not declared in this scope
XMMt = _mm_add_ps(XMMt,_mm_mul_ps(_mm_mul_ps(XMMw1, XMMones), XMMv));
^
src/common.h:131:91: error: ‘_mm_mul_ps’ was not declared in this scope
XMMt = _mm_add_ps(XMMt,_mm_mul_ps(_mm_mul_ps(XMMw1, XMMones), XMMv));
^
src/common.h:131:91: error: redeclaration of ‘_mm_mul_ps’
src/common.h:131:84: note: previous declaration ‘_mm_mul_ps’
XMMt = _mm_add_ps(XMMt,_mm_mul_ps(_mm_mul_ps(XMMw1, XMMones), XMMv));
^
src/common.h:131:92: error: ‘_mm_add_ps’ was not declared in this scope
XMMt = _mm_add_ps(XMMt,_mm_mul_ps(_mm_mul_ps(XMMw1, XMMones), XMMv));
^
src/common.h:141:5: error: ‘XMMt’ was not declared in this scope
XMMt = _mm_hadd_ps(XMMt, XMMt);
^
src/common.h:141:34: error: ‘_mm_hadd_ps’ was not declared in this scope
XMMt = _mm_hadd_ps(XMMt, XMMt);
^
src/common.h:144:26: error: ‘_mm_store_ss’ was not declared in this scope
_mm_store_ss(&t, XMMt);
^
make: *** [fm] Error 1
rzai@rzai00:~/prj/kaggle-avazu-3rd/fm$
I read your code in ./script/addc.py and I wonder that whether you didn't output the variable 'ch'?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.