Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
Archivo: trained.py Proyecto: 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
Ejemplo n.º 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