hengchao0248 / ccf2016_sougou Goto Github PK
View Code? Open in Web Editor NEWccf2016 sougou final winner solution
ccf2016 sougou final winner solution
04
/usr/local/lib/python3.4/dist-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled, cuDNN 5105)
/usr/local/lib/python3.4/dist-packages/theano/sandbox/cuda/init.py:600: UserWarning: Your cuDNN version is more recent than the one Theano officially supports. If you see any problems, try updating Theano or downgrading cuDNN to version 5.
warnings.warn(warn)
Using Theano backend.
Traceback (most recent call last):
File "dm_nn_stack.py", line 24, in
df_all = pd.read_csv(cfg.data_path + 'all.csv',encoding='utf8',usecols=['Id','Education','age','gender'],nrows=200000)
File "/usr/local/lib/python3.4/dist-packages/pandas/io/parsers.py", line 645, in parser_f
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib/python3.4/dist-packages/pandas/io/parsers.py", line 388, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/usr/local/lib/python3.4/dist-packages/pandas/io/parsers.py", line 729, in init
self._make_engine(self.engine)
File "/usr/local/lib/python3.4/dist-packages/pandas/io/parsers.py", line 922, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/local/lib/python3.4/dist-packages/pandas/io/parsers.py", line 1389, in init
self._reader = _parser.TextReader(src, **kwds)
File "pandas/parser.pyx", line 373, in pandas.parser.TextReader.cinit (pandas/parser.c:4025)
File "pandas/parser.pyx", line 667, in pandas.parser.TextReader._setup_parser_source (pandas/parser.c:8031)
FileNotFoundError: File b'./data/all.csv' does not exist
05
Traceback (most recent call last):
File "xgb_ens.py", line 15, in
df_dm = pd.read_csv(cfg.data_path + 'dmd2v_stack_20W.csv')
File "/usr/local/lib/python3.4/dist-packages/pandas/io/parsers.py", line 645, in parser_f
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib/python3.4/dist-packages/pandas/io/parsers.py", line 388, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/usr/local/lib/python3.4/dist-packages/pandas/io/parsers.py", line 729, in init
self._make_engine(self.engine)
File "/usr/local/lib/python3.4/dist-packages/pandas/io/parsers.py", line 922, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/local/lib/python3.4/dist-packages/pandas/io/parsers.py", line 1389, in init
self._reader = _parser.TextReader(src, **kwds)
File "pandas/parser.pyx", line 373, in pandas.parser.TextReader.cinit (pandas/parser.c:4025)
File "pandas/parser.pyx", line 667, in pandas.parser.TextReader._setup_parser_source (pandas/parser.c:8031)
FileNotFoundError: File b'./data/dmd2v_stack_20W.csv' does not exist
rzai@rzai00:/prj/ccf2016_sougou$/prj/ccf2016_sougou$
rzai@rzai00:
rzai@rzai00:/prj/ccf2016_sougou$/prj/ccf2016_sougou$
rzai@rzai00:
rzai@rzai00:/prj/ccf2016_sougou$/prj/ccf2016_sougou$
rzai@rzai00:
rzai@rzai00:/prj/ccf2016_sougou$/prj/ccf2016_sougou$ tree
rzai@rzai00:
.
├── alldata-id-shuf.txt
├── alldata-id.txt
├── cfg.py
├── cfg.pyc
├── data
│ ├── all_v2.csv
│ ├── dbow_d2v.model
│ ├── dbow_d2v.model.docvecs.doctag_syn0.npy
│ ├── dbow_d2v.model.syn0.npy
│ ├── dbow_d2v.model.syn1neg.npy
│ ├── dbowd2v_stack_20W.csv
│ ├── dm_d2v.model
│ ├── dm_d2v.model.docvecs.doctag_syn0.npy
│ ├── dm_d2v.model.syn0.npy
│ ├── dm_d2v.model.syn1neg.npy
│ ├── tfidf_10W.feat
│ ├── tfidf_stack_20W.csv
│ ├── user_tag_query.10W.TEST
│ └── user_tag_query.10W.TRAIN
├── dbow_nn_stack.py
├── dm_nn_stack.py
├── docs
│ └── 队旗.jpg
├── fill_nan.py
├── pycache
│ └── cfg.cpython-34.pyc
├── README.md
├── run_cv.ipynb
├── run.sh
├── sougou_from_pan.baidu.zip
├── tfidf_lr_stack.py
├── train_d2v_model.py
└── xgb_ens.py
3 directories, 30 files
rzai@rzai00:~/prj/ccf2016_sougou$
生成的all_v2.csv在我的电脑上编码不是utf-8,而是gb2312,read_csv时encoding改为'gb18030'或‘gb2312’。
在执行train_d2v_model.py文件时,在36行总是会报编码错误。
line = line.decode('utf8').rstrip()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 7: invalid start byte
有对应的数据库sql文件吗??
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.