Package mvpa :: Package datasets :: Module splitters :: Class NoneSplitter

[hide private]
[frames] | no frames]

# Class NoneSplitter

source code

This is a dataset splitter that does not split. It simply returns the full dataset that it is called with.

The passed dataset is returned as the second element of the 2-tuple. The first element of that tuple will always be 'None'.

Instance Methods | [hide private]

__init__(self, mode='second', **kwargs) Cheap init -- nothing special | source code

_getSplitConfig(self, uniqueattrs) Return just one full split: no first or second dataset. | 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]

| _known_modes = `['first', 'second']`
| __doc__ = `enhancedDocString('NoneSplitter', 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, mode='second', **kwargs)
(Constructor)

source code

Cheap init -- nothing special

Parameters:
  - `mode` - Either 'first' or 'second' (default) -- which output dataset would actually contain the samples
Overrides: object.__init__

### _getSplitConfig(self, uniqueattrs)

source code

Return just one full split: no first or second dataset.

Overrides: Splitter._getSplitConfig

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

source code

String summary over the object

Overrides: object.__str__