mvpa2.mappers.fx.FxMapper

Inheritance diagram of FxMapper

class mvpa2.mappers.fx.FxMapper(axis, fx, fxargs=None, uattrs=None, attrfx='merge')

Apply a custom transformation to (groups of) samples or features.

Notes

Available conditional attributes:

  • calling_time+: Time (in seconds) it took to call the node
  • raw_results: Computed results before invoking postproc. Stored only if postproc is not None.
  • training_time+: Time (in seconds) it took to train the learner

(Conditional attributes enabled by default suffixed with +)

Parameters :

axis : {‘samples’, ‘features’}

fx : callable

fxargs : tuple

uattrs : list

List of attribute names to consider. All possible combinations of unique elements of these attributes are used to determine the sample groups to operate on.

attrfx : callable

Functor that is called with each sample attribute elements matching the respective samples group. By default the unique value is determined. If the content of the attribute is not uniform for a samples group a unique string representation is created. If None, attributes are not altered.

enable_ca : None or list of str

Names of the conditional attributes which should be enabled in addition to the default ones

disable_ca : None or list of str

Names of the conditional attributes which should be disabled

attrfx
axis
fx
fxargs
is_trained

Indicate that this mapper is always trained.

uattrs

NeuroDebian

NITRC-listed