buptwds

Results issues of buptwds

PaddlePaddle新手入门例子(线性回归):http://doc.paddlepaddle.org/doc_cn/getstarted/concepts/use_concepts_cn.html 提示输入数据格式有误,ValueError: The input should be a vector, please check your input data.

我的原特征数据是稀疏矩阵格式,格式为label featureid:value featureid:value,这里的value表是有值且为1,为0的不显示,lable的值目前为-1和1,表示有点击和无点击(ctr问题) 我想用paddlepaddle跑一次LR,使用的激活函数为Relu和Sigmoid,但是一直跑不完(测试了小数据量的训练集就可以),event.pass_id一直稳定在0(num_passes指定的是30),event.batch_id已经跑到几十万,初学机器学习和paddlepaddle(以前使用过liblinear跑过该训练集),请问我的问题可能是出在哪里呢?

在ctr预估中,现在使用的是LR,然后尝试了Wide&Deep,效果并没有提升。现在想做一些特征的组合,网上查阅资料说GBDT、FM的效果比较好,想问一下在PaddlePaddle中应该如何使用,或者PaddlePaddle中是否有可替代的模型?或者对于ctr预估还有其他什么建议吗?注:目前的训练集是01稀疏矩阵

question

用的paddle/model中的ctr的例子,里面的模型是wide&deep,其中的wide部分输入数据是01稀疏矩阵,因为训练速度很慢,开启了sparse_update,训练时报如下错误,关闭sparse_update时错误消失 ![image](https://user-images.githubusercontent.com/10849519/31990097-b9590e6c-b939-11e7-9972-d4dceee3d708.png) 其中wide部分的数据声明(数据为01稀疏矩阵) ![image](https://user-images.githubusercontent.com/10849519/31990246-25f1b6d2-b93a-11e7-9b2b-dae61091f729.png) 开启sparse_update的位置 ![image](https://user-images.githubusercontent.com/10849519/31990346-7636b282-b93a-11e7-844d-2124fe5a217d.png) 读取数据那部分代码我根据我们的数据格式做了一些修改,不开启sparse_update是可以正常跑的,issue看到了类似的报错,给的解决方案是让把sparse_update关了,https://github.com/PaddlePaddle/Paddle/issues/364

Bug

http://doc.paddlepaddle.org/doc_cn/getstarted/build_and_install/docker_install_cn.html ![image](https://user-images.githubusercontent.com/10849519/32037743-5a63be12-b9ec-11e7-8ec6-33a2f5f2f6d3.png) 图中docker镜像的链接指向https://hub.docker.com/r/paddledev/paddle/ paddledev的tags已经不更新 最新的地址应该是https://hub.docker.com/r/paddlepaddle/paddle/ 麻烦更新下链接

User

用非cpu的latest版本的paddle,模型用的是models里的ctr,想要提高训练速度,trainer_count=1和trainer_count=2都可以跑,trainer_count > 2时报错,看错误好像是内存不足,但是top查看内存还剩挺多,错误如下BLAS : Program is Terminated. Because you tried to allocate too many memory regions.: ![image](https://user-images.githubusercontent.com/10849519/32048589-9b9cb97e-ba0f-11e7-849f-e23f02c2c606.png)

![image](https://user-images.githubusercontent.com/10849519/32641882-0ed8a1aa-c596-11e7-8055-4fbc0e26569b.png)

models/ctr例子,第一个pass之后使用的数据集不再是train里读取的,而是test中的reader读取的,原因如下:取batch_size=1w,train数据量有400w多,test数据量1w,第一个pass输出了400多个batch_id,第二个pass以后读取一个batch就结束了,如果把test的数据量增加1,即10001,第二个pass以后的batch由1变成2,说明第二个pass后读取的是test中reader的数据而不是train中reader的数据 以前用这个test也遇到过问题,大概是:train用20170901的数据,test如果用的是20170902的数据,最后的评估的结果是20170902的效果明显好于其他天,现在看来原来是因为第二个pass后train的数据集使用的是20170902而不是20170901,所以相当于train使用的是20170902,评估20170902的效果自然好于其他天。 ![image](https://user-images.githubusercontent.com/10849519/32818402-b3cb02f2-c988-11e7-996f-49c206d5ebbc.png)

User

数据和代码(除了损失函数)都一样,损失函数为huber_regression_cost和multi_binary_label_cross_entropy 时可以正常运行,但改为huber_classification_cost时报错如下: ![image](https://user-images.githubusercontent.com/10849519/34156167-0506d360-e4f7-11e7-80ea-e18ba843663d.png)

User

模型训练使用的是线性回归的例子http://paddlepaddle.org/docs/develop/documentation/zh/getstarted/concepts/use_concepts_cn.html 训练完使用merge_model.py把训练出来的模型和网络配置合并,代码如下: ``` import paddle.v2 as paddle from paddle.utils.merge_model import merge_v2_model def network(is_infer=False): x = paddle.layer.data(name='x', type=paddle.data_type.dense_vector(2)) y_predict = paddle.layer.fc(input=x, size=1, act=paddle.activation.Linear()) if is_infer: return y_predict else: y = paddle.layer.data(name='y',...

User