Partitioner for two-level factorial designs
Given another partitioner on a dataset containing two attributes that are organized in a hierarchy, it generates balanced folds of the super-ordinate category that are also balanced according to the sub-ordinate category.
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. |
Initialize instance of FactorialPartitioner
Parameters : | enable_ca : None or list of str
disable_ca : None or list of str
count : None or int
selection_strategy : str
attr : str
space : 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. |