Ashleychen
Ashleychen
This is my pip's version: AhleyMac:python-package Ashley$ pip --version ## pip 1.5.6 from /Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg (python 2.7) And I install xgboost: AhleyMac:python-package Ashley$ sudo pip install xgboost Requirement already satisfied (use...
AhleyMac:site-packages Ashley$ pip --version pip 7.1.2 from /Library/Python/2.7/site-packages (python 2.7) AhleyMac:site-packages Ashley$ sudo pip install xgboost The directory '/Users/Ashley/Library/Caches/pip/http' or its parent directory is not owned by the current user...
Yes, I have done these two steps. What I want to ask is: Do I need to run the Makefile again, run the setup.py in the subfolder, or remove the...
OH~The error seems the same: AhleyMac:site-packages Ashley$ python Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type "help", "copyright", "credits" or "license"...
The message is here: AhleyMac:site-packages Ashley$ sudo pip install xgboost -v The directory '/Users/Ashley/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been...
我遇到了相同的问题,gpu模式下当我batch_size设成1,本来应该返回shape:(batch_size, seq_len, 1),实际返回(seq_len,1),batch_size这一维被吃掉了。看来这个bug还没有修复?
> 输入数据使用LODTensor的话,对于分步处理每一个时间步的数据的需求,大部分情况应该都可以直接使用DynamicRNN,可以尝试使用下,这里有示例 https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/fluid/tests/book/test_machine_translation.py#L69 ,其中rnn.step_input即是每一个时间步的数据,rnn.memory是需要更新的rnn的hidden state,另外还有个rnn.static_input是rnn外部的数据在DynamicRNN内的表示(如encoder的output),可以利用这三种数据完成所需操作,可以试下是否能满足需求 我采用了这个方案来搭建网络,但是用dynamic rnn训练的速度十分慢,我的基线模型是rnn,跑一个batch只需要0.12s,但是用dynamic rnn得花2s。请问这个可以优化一下吗。
``` drnn = fluid.layers.DynamicRNN() with drnn.block(): input_t = drnn.step_input(recent_feature_emb_concat) label_t_1 = drnn.step_input(last_target) offset = drnn.static_input(offset) read_mem_t_1 = drnn.memory( shape=[self.conf.nb_reads * self.conf.memory_shape[1]], dtype='float32', value=0) h_t_1 = drnn.memory(shape=[self.conf.cell_size], dtype='float32', value=0) c_t_1 =...
您好,我会尽快给您回复。
我指的是,训练的时候训2个batch我就把模型保存下来,但是重新加载这个模型来评估的时候模型的预测结果跟我当时保存它的时候不一致。 因为我保存模型参数的时候和我重新加载模型参数进行评估的时候,我都用同一份测试数据进行预测,按道理模型参数一致,测试数据一致,预测结果也应该一致。