Package mvpa :: Package datasets :: Module splitters :: Class OddEvenSplitter

[hide private]
[frames] | no frames]

# Class OddEvenSplitter

source code

Split a dataset into odd and even values of the sample attribute.

The splitter yields to splits: first (odd, even) and second (even, odd).

Instance Methods | [hide private]

__init__(self, usevalues=False, **kwargs) Cheap init. | source code

_getSplitConfig(self, uniqueattrs) Huka chaka! YOH: LOL XXX | 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('OddEvenSplitter', locals(), Split`...``
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, usevalues=False, **kwargs)
(Constructor)

source code

Cheap init.

Parameters:
  - `usevalues`, `bool` - If True the values of the attribute used for splitting will be used to determine odd and even samples. If False odd and even chunks are defined by the order of attribute values, i.e. first unique attribute is odd, second is even, despite the corresponding values might indicate the opposite (e.g. in case of [2,3].
Overrides: object.__init__

### _getSplitConfig(self, uniqueattrs)

source code

Huka chaka! YOH: LOL XXX

Overrides: Splitter._getSplitConfig

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

source code

String summary over the object

Overrides: object.__str__

Class Variable Details | [hide private]

### __doc__

Value:

      enhancedDocString('OddEvenSplitter', locals(), Splitter)