mvpa2.datasets.miscfx.aggregate_features¶
-
mvpa2.datasets.miscfx.
aggregate_features
(dataset, fx=<function mean>)¶ Apply a function to each row of the samples matrix of a dataset.
The functor given as
fx
has to honour anaxis
keyword argument in the way that NumPy used it (e.g. NumPy.mean, var).Returns: a new `Dataset` object with the aggregated feature(s). :