Basic Functions¶
- class sekupy.preprocessing.functions.Detrender(degree=1, chunks_attr='chunks', **kwargs)[source]¶
Detrend data.
- Parameters:
- class sekupy.preprocessing.functions.FeatureStacker(stack_attr=['chunks'], keep_attr=['targets'], selection_dictionary={}, **kwargs)[source]¶
Stack features.
This function is used to stack features with different sample attribute keys, to use these features, jointly.
- Parameters:
stack_attr (list, optional) –
This is the attribute to be used for stacking, the resulting dataset will have a sample attribute given by the union of unique attributes
(the default is ‘chunks’)
keep_attr (list, optional) – The attributes to keep, unique values of these attributes will be used to mask the dataset. (the default is [‘targets’])
selection_dictionary (dict, optional) – This will be used to filter the dataset see
`SampleSlicer`.
- class sekupy.preprocessing.functions.SampleAttributeTransformer(attr=None, fx=None, **kwargs)[source]¶
- class sekupy.preprocessing.functions.SampleAverager(attributes)[source]¶
Init the transformer.
- Parameters:
attributes (list) – List of sample attributes whose unique values will be used to identify the samples groups.
- class sekupy.preprocessing.functions.SampleTransformer(attr={})[source]¶
Transforms samples.
This function is used when we need to lock SampleSlicer with TargetTransformer in order to be used with AnalysisIterator.
- Parameters:
attr (dictionary) – [description]
- Returns:
[description]
- Return type:
[type]