Wrong number or type of arguments for overloaded function 'Matrix_sparseCopyFrom'
Created by: iyishengyoun
输入数据:yield [cuid_vec_dict.values(), nid_vec_dict.values()], [label] cuid_vec_dict.values()和nid_vec_dict.values()是[0,0,1.......]0和1构成的长度为90000多的list label是0或1
paddle配置信息:
x = paddle.layer.data(name='x', type=paddle.data_type.sparse_binary_vector(2))
y_predict = paddle.layer.fc(input=x, size=1, act=paddle.activation.Linear())
y = paddle.layer.data(name='y', type=paddle.data_type.sparse_binary_vector(1))
cost = paddle.layer.mse_cost(input=y_predict, label=y)
parameters = paddle.parameters.create(cost)
optimizer = paddle.optimizer.Momentum(momentum=0, learning_rate=0.01)
trainer = paddle.trainer.SGD(cost=cost, parameters=parameters, update_equation=optimizer)