Exemplo n.º 1
0
    def __init__(self, **kwargs):

        self._selection = dict()
        for arg in kwargs:
            self._selection[arg] = kwargs[arg]

        Transformer.__init__(self, name='sample_slicer', **kwargs)
Exemplo n.º 2
0
 def __init__(self,
              selection_dictionary=None,
              stack_attr=['targets', 'chunks'],
              **kwargs):
     self._selection = selection_dictionary
     self._attr = stack_attr
     Transformer.__init__(self, name='sample_stacker', **kwargs)
Exemplo n.º 3
0
 def __init__(self, balancer=RandomUnderSampler(return_indices=True), attr='chunks', **kwargs):
     
     self._attr = attr
     self._balancer_algorithm = balancer   
     self._balancer = self._check_balancer(balancer)
                
     Transformer.__init__(self, name='balancer', **kwargs)
Exemplo n.º 4
0
 def __init__(self, **kwargs):
     
     self._selection = dict()
     for arg in kwargs:
         self._selection[arg] = kwargs[arg]
     
     
     Transformer.__init__(self, name='sample_slicer',**kwargs)    
Exemplo n.º 5
0
 def __init__(self, name='pipeline', nodes=[Transformer()]):
     
     self.nodes = []
     
     if nodes != None:
         self.nodes = nodes
     
     if isinstance(nodes[0], str):
         self.nodes = [function_mapper(node)() for node in nodes]
                 
     Transformer.__init__(self, name)
Exemplo n.º 6
0
    def __init__(self, name='pipeline', nodes=[Transformer()]):

        self.nodes = []

        if nodes != None:
            self.nodes = nodes

        if isinstance(nodes[0], str):
            self.nodes = [function_mapper(node)() for node in nodes]

        Transformer.__init__(self, name)
Exemplo n.º 7
0
 def __init__(self, name='zfisher', **kwargs):
     Transformer.__init__(self, name=name, **kwargs)
Exemplo n.º 8
0
 def __init__(self, target=None, **kwargs):
     self._attribute = target
     Transformer.__init__(self, name='target_transformer', **kwargs)
Exemplo n.º 9
0
 def __init__(self, name='sample_normalizer', **kwargs):
     Transformer.__init__(self, name=name, **kwargs)       
Exemplo n.º 10
0
 def __init__(self, chunks_attr='chunks', param_est=None, **kwargs):
     self.node = ZScoreMapper(chunks_attr=chunks_attr, param_est=param_est)
     Transformer.__init__(self, name='feature_normalizer', **kwargs)
Exemplo n.º 11
0
 def __init__(self, attributes, **kwargs):
     self.node = mean_group_sample(attributes)
     Transformer.__init__(self, name='sample_averager', **kwargs)
Exemplo n.º 12
0
 def __init__(self, selection_dictionary=None, stack_attr=['targets', 'chunks'], **kwargs):
     self._selection = selection_dictionary
     self._attr = stack_attr
     Transformer.__init__(self, name='sample_stacker',**kwargs)    
Exemplo n.º 13
0
 def __init__(self, degree=1, chunks_attr='chunks', **kwargs):
     self._degree = degree
     self.node = PolyDetrendMapper(chunks_attr=chunks_attr, polyord=degree)
     Transformer.__init__(self, name='detrending', **kwargs)
Exemplo n.º 14
0
 def __init__(self, degree=1, chunks_attr='chunks', **kwargs):
     self._degree = degree
     self.node = PolyDetrendMapper(chunks_attr=chunks_attr, polyord=degree)
     Transformer.__init__(self, name='detrending', **kwargs)
Exemplo n.º 15
0
 def __init__(self, name='upper_matrix', **kwargs):
     Transformer.__init__(self, name=name, **kwargs)
Exemplo n.º 16
0
 def __init__(self, target=None, **kwargs):
     self._attribute = target
     Transformer.__init__(self, name='target_transformer', **kwargs)
Exemplo n.º 17
0
 def __init__(self, name='sample_normalizer', **kwargs):
     Transformer.__init__(self, name=name, **kwargs)
Exemplo n.º 18
0
 def __init__(self, chunks_attr='chunks', param_est=None, **kwargs):
     self.node = ZScoreMapper(chunks_attr=chunks_attr, param_est=param_est)
     Transformer.__init__(self, name='feature_normalizer', **kwargs)
Exemplo n.º 19
0
 def __init__(self, attributes, **kwargs):
     self.node = mean_group_sample(attributes)
     Transformer.__init__(self, name='sample_averager', **kwargs)
Exemplo n.º 20
0
 def __init__(self, name='zfisher', **kwargs):
     Transformer.__init__(self, name=name, **kwargs)
Exemplo n.º 21
0
 def __init__(self, balancer, attr='chunks', name='node', **kwargs):
     
     self._attr = attr
     self._balancer = balancer
     
     Transformer.__init__(self, name=name, **kwargs)