Node to permute one a more attributes in a dataset.
This node can permute arbitrary sample or feature attributes in a dataset. Moreover, it supports limiting the permutation to a subset of samples or features (see limit argument). The node can simply be called with a dataset for a one time permutation, or used as a generator to produce multiple permutations.
This node only permutes dataset attributes, dataset samples are no affected. The permuted output dataset shares the samples container with the input dataset.
Notes
Available conditional attributes:
(Conditional attributes enabled by default suffixed with +)
Methods
generate(ds) | Generate the desired number of permuted datasets. |
get_postproc() | Returns the post-processing node or None. |
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 : | attr : str or list(str)
count : int
limit : None or str or dict
assure : bool
enable_ca : None or list of str
disable_ca : None or list of str
space: str, optional :
postproc : Node instance, optional
descr : str
|
---|
Methods
generate(ds) | Generate the desired number of permuted datasets. |
get_postproc() | Returns the post-processing node or None. |
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. |
Generate the desired number of permuted datasets.
DEPRECATED: to be removed in 2.1 – use .count instead