Package mvpa :: Package datasets :: Module splitters :: Class NGroupSplitter

[hide private]
[frames] | no frames]

# Class NGroupSplitter

source code

Split a dataset into N-groups of the sample attribute.

For example, NGroupSplitter(2) is the same as the HalfSplitter and yields to splits: first (1st half, 2nd half) and second (2nd half, 1st half).

Instance Methods | [hide private]

__init__(self, ngroups=4, **kwargs) Initialize the N-group splitter. | source code

_getSplitConfig(self, uniqueattrs) Huka chaka, wuka waka! | source code

__str__(self) String summary over the object | source code

Inherited from `Splitter`: `__call__`, `setNPerLabel`, `splitDataset`, `splitcfg` Inherited from `Splitter` (private): `_setStrategy` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Class Variables | [hide private]

| __doc__ = `enhancedDocString('NGroupSplitter', locals(), Splitter)`
Inherited from `Splitter`: `strategy` Inherited from `Splitter` (private): `_NPERLABEL_STR`, `_STRATEGIES`

Instance Variables | [hide private]

Inherited from `Splitter`: `count`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, ngroups=4, **kwargs)
(Constructor)

source code

Initialize the N-group splitter.

Parameters:
  - `ngroups`, `int` - Number of groups to split the attribute into.
  - `kwargs` - Additional parameters are passed to the Splitter base class.
Overrides: object.__init__

### _getSplitConfig(self, uniqueattrs)

source code

Huka chaka, wuka waka!

Overrides: Splitter._getSplitConfig

### __str__(self)
(Informal representation operator)

source code

String summary over the object

Overrides: object.__str__