示例#1
0
文件: trained.py 项目: BSeanSun/ramp
 def __init__(self, group_by, func=None, target=None, min_sample=10):
     # How terrible of a hack is this?
     super(TargetAggregationByFactor, self).__init__()
     self.group_by = group_by
     self.func = func
     self.target = to_feature(target)
     self.min_sample = min_sample
示例#2
0
文件: trained.py 项目: Afey/ramp
 def __init__(self, group_by, func=None, target=None,
              min_sample=10, regularize=True):
     super(TargetAggregationByFactor, self).__init__()
     self.group_by = group_by
     self.func = func
     self.target = to_feature(target)
     self.min_sample = min_sample
     self.regularize = regularize
示例#3
0
 def __init__(self,
              group_by,
              func=None,
              target=None,
              min_sample=10,
              regularize=True):
     super(TargetAggregationByFactor, self).__init__()
     self.group_by = group_by
     self.func = func
     self.target = to_feature(target)
     self.min_sample = min_sample
     self.regularize = regularize