HugoLian

Results comments of HugoLian

@typhoonzero 后来我调整了学习率,同时把Relu() 都换成Tanh()了,也出现了一样的问题,刚开始几轮还是在收敛的,但排除之前几个Batch可以迅速收敛,后来的变化都非常小,这是第一轮刚开始运行的cost情况: ``` I1021 15:31:40.701167 21651 Util.cpp:166] commandline: --use_gpu=False --trainer_count=4 W1021 15:31:40.701234 21651 CpuId.h:112] PaddlePaddle wasn't compiled to use avx instructions, but these are available on your machine and...

@lcy-seso 我的网络结构主要部分是: ```python def half_ranknet(name_prefix, input_dim_title): """ parameter in same name will be shared in paddle framework, these parameters in ranknet can be used in shared state, e.g. left network...

@lcy-seso 就是同一次推荐中,用户点过的内容 和 没点过的内容做笛卡尔乘积,获得左右的两组数据,生成的训练样本。tile, plsa, attention本身都是同一类型数据(维度相同),只是来自不同的样本。

@ranqiu92 暂时没包含query特征(对于我们这个场景是用户特征,同一个用户的结果进行pairwise)。如果不包含会有模型层面的问题么?还仅仅是准确性不好保证?

请问V2在paddle.infer()的执行方法中,还有batch_size这个概念么? paddle.infer(output_layer=user_features, parameters=parameters, input=input_data, feeding=feeding) 我看demo中只有这些参数,如果需要一次处理多批数据,是把数组传到input_data中。

@guoshengCS 我测了不同的batch_size,发现确实最后一层矩阵的参数数量,和最后一个fc_layer,即下图中红框与绿框是相关的 ![image](https://user-images.githubusercontent.com/22980558/35846045-ef5aac56-0b4f-11e8-83e0-bdff419f16d9.png) 另外,我感觉参数的数量,其实和直接连softmax,即没有下图中黑框的部分是相同的: ![image](https://user-images.githubusercontent.com/22980558/35846092-2668919a-0b50-11e8-8d7b-93232fc9aa13.png) 能不能理解成,如果没有黑框部分,从一个fc_layer一个lstm到最后的softmax输出,公式是这样的: a1(w1x1 + w2x2 + w3x3 ..) + b1 => class1 a2(w1x1 + w2x2 + w3x3 ..) + b2 => class2 如果加上一个pooling层,这个计算公式变成: a1( max(w1x1,w2x2,w3x3 ..)...

@pkuyym 同样的数据,训练没问题,但是可能不能算AUC么?这个是cos_sim的输出和label算AUC,什么样的数据可能导致训练可以进行,而AUC验证失败呢?

问题解决了 原因是cos_sim的输出是[-1, 1]的区间,之前模型没报错是因为cos_sim上一层的激活函数是relu, 抑制了负数的输出,而改成tanh之后,cos_sim的结果,不适合计算AUC,通过加了一层: auc_layer = paddle.layer.slope_intercept(input=inference, name='auc_layer', slope=0.5, intercept=0.5) 把cos_sim的结果转化到(0, 1)区间,解决了问题。

原始需求就是变化下区间,不一定非使用scale_shift,别的可以实现的方法也可以。