提交 0cc5872d 编写于 作者: C chengmo

fix reader

上级 8de0aa46
......@@ -33,8 +33,8 @@ class TrainReader(Reader):
This function needs to be implemented by the user, based on data format
"""
features = (line.strip('\n')).split('\t')
input_emb = features[0].split(' ')
item_label = [features[1]]
input_emb = map(float, features[0].split(' '))
item_label = [int(features[1])]
feature_name = ["input_emb", "item_label"]
yield zip(feature_name, [input_emb] + [item_label])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册