Package mvpa :: Package datasets :: Module mappeddataset :: Class MappedDataset
[hide private]
[frames] | no frames]

Class MappedDataset

source code


A Dataset which is created by applying a Mapper to the data.

It uses a mapper to transform samples from their original dataspace into the feature space. Various mappers can be used. The "easiest" one is MaskMapper which allows to select the features (voxels) to be used in the analysis: see MaskedDataset

Instance Methods [hide private]
 
mapForward(self, data)
Map data from the original dataspace into featurespace.
source code
 
mapReverse(self, data)
Reverse map data from featurespace into the original dataspace.
source code

Inherited from base.Dataset: __add__, __iadd__, __repr__, __str__, convertFeatureIds2FeatureMask, convertFeatureMask2FeatureIds, getNFeatures, getNSamples, getRandomSamples, idsbychunks, idsbylabels, setSamplesDType, summary

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

    Creators
 
__init__(self, samples=None, mapper=None, dsattr=None, **kwargs)
Initialize MaskedDataset
source code
 
selectFeatures(self, ids, plain=False, sort=False)
Select features given their ids.
source code

Inherited from base.Dataset: applyMapper, selectSamples

    Mutators

Inherited from base.Dataset: permuteLabels

Class Methods [hide private]

Inherited from base.Dataset (private): _registerAttribute

Class Variables [hide private]
Instance Variables [hide private]

Inherited from base.Dataset (private): _data, _dsattr

Properties [hide private]
  mapper
mapper

Inherited from base.Dataset: chunks, idhash, labels, nfeatures, nsamples, samples, samplesperchunk, samplesperlabel, uniquechunks, uniquelabels

Inherited from object: __class__

Method Details [hide private]

__init__(self, samples=None, mapper=None, dsattr=None, **kwargs)
(Constructor)

source code 
Initialize MaskedDataset
Parameters:
  • mapper - Instance of Mapper used to map input data
Overrides: object.__init__

selectFeatures(self, ids, plain=False, sort=False)

source code 
Select features given their ids.
Parameters:
  • ids - iterable container to select ids
  • plain - bool, if to return MappedDataset (or just Dataset)
  • sort - bool, if to sort Ids. Order matters and selectFeatures assumes incremental order. If not such, in non-optimized code selectFeatures would verify the order and sort
Overrides: base.Dataset.selectFeatures

Property Details [hide private]

mapper

mapper
Get Method:
unreachable(self) - mapper