Partition a dataset into two halves of the sample attribute.
The partitioner yields two datasets. In the first set second half of chunks are labeled ‘1’ and the first half labeled ‘2’. In the second set the assignment is reversed (1st half: ‘1’, 2nd half: ‘2’).
Notes
Available conditional attributes:
(Conditional attributes enabled by default suffixed with +)
Methods
generate(ds) | |
get_partition_specs(ds) | Returns the specs for all to be generated partition sets. |
get_partitions_attr(ds, specs) | Create a partition attribute array for a particular partition spec. |
get_postproc() | Returns the post-processing node or None. |
get_selected_indexes(n_cfgs) | A naive selection of indexes according to strategy and count |
get_space() | Query the processing space name of this node. |
reset() | |
set_postproc(node) | Assigns a post-processing node |
set_space(name) | Set the processing space name of this node. |
Parameters : | count : None or int
selection_strategy : str
attr : str
space : str
enable_ca : None or list of str
disable_ca : None or list of str
pass_attr : str, list of str|tuple, optional
postproc : Node instance, optional
descr : str
|
---|
Methods
generate(ds) | |
get_partition_specs(ds) | Returns the specs for all to be generated partition sets. |
get_partitions_attr(ds, specs) | Create a partition attribute array for a particular partition spec. |
get_postproc() | Returns the post-processing node or None. |
get_selected_indexes(n_cfgs) | A naive selection of indexes according to strategy and count |
get_space() | Query the processing space name of this node. |
reset() | |
set_postproc(node) | Assigns a post-processing node |
set_space(name) | Set the processing space name of this node. |