提交 de822fef 编写于 作者: 赵大寳Note's avatar 赵大寳Note

preprocess method for criteo support python3

上级 1623393f
......@@ -51,7 +51,7 @@ class CategoryDictGenerator:
return res
def dicts_sizes(self):
return map(len, self.dicts)
return list(map(len, self.dicts))
class ContinuousFeatureGenerator:
......@@ -61,8 +61,8 @@ class ContinuousFeatureGenerator:
def __init__(self, num_feature):
self.num_feature = num_feature
self.min = [sys.maxint] * num_feature
self.max = [-sys.maxint] * num_feature
self.min = [sys.maxsize] * num_feature
self.max = [-sys.maxsize] * num_feature
def build(self, datafile, continous_features):
with open(datafile, 'r') as f:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册