Code Monkey home page Code Monkey logo

ccf2016_sougou's People

Contributors

hengchao0248 avatar liyumeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ccf2016_sougou's Issues

file doesn't exist while run python3 dm_nn_stack.py

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$
rzai@rzai00:
/prj/ccf2016_sougou$
rzai@rzai00:/prj/ccf2016_sougou$
rzai@rzai00:
/prj/ccf2016_sougou$
rzai@rzai00:/prj/ccf2016_sougou$
rzai@rzai00:
/prj/ccf2016_sougou$
rzai@rzai00:/prj/ccf2016_sougou$
rzai@rzai00:
/prj/ccf2016_sougou$ tree
.
├── 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编码问题

生成的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

训练 d2v 模型中的疑惑

你好,我在阅读这个项目源码的时候,产生了一些疑惑,希望能帮忙解答一下。

在训练 d2v 模型的时候,为什么 dbow 模型要累积训练 2 次,而 dm 模型要累积训练 10 次呢?以及为什么要查看 cv 分数,查看 cv 分数是为了确定累积训练次数吗?

也就是下面这个截图的内容:
5 7zj v09io27ha5d1s849

非常感谢!

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.