rsatoolbox.data.computations module

Dataset computations

rsatoolbox.data.computations.average_dataset(dataset)[source]

computes the average of a dataset

Parameters

dataset (rsatoolbox.data.Dataset) – the dataset to operate on

Returns

average: average activation vector

Return type

numpy.ndarray

rsatoolbox.data.computations.average_dataset_by(dataset, by)[source]

computes the average of a dataset per value of a descriptor

Parameters
  • dataset (rsatoolbox.data.Dataset) – the dataset to operate on

  • by (String) – which obs_descriptor to split by

Returns

average: average activation vector

Return type

numpy.ndarray