Connectivity transformers

class sekupy.preprocessing.connectivity.AverageEstimator(name='average_estimator', **kwargs)[source]
transform(ds)[source]

Transform the provided dataset.

This method applies the transformation to the dataset and records the transformation in the dataset’s preprocessing history.

Parameters:

ds (Dataset) – The dataset to transform

Returns:

The transformed dataset

Return type:

Dataset

class sekupy.preprocessing.connectivity.SingleRowMatrixTransformer(name='upper_matrix', **kwargs)[source]

This transformer change a row dataset representing a matrix in a square matrix dataset.

transform(ds)[source]

This function performs the transformation into a square matrix dataset

Parameters:

ds (pymvpa Dataset) – The dataset to be transformed.

Returns:

ds – The transformed dataset

Return type:

pymvpa Dataset

class sekupy.preprocessing.connectivity.SlidingWindowConnectivity(window_length=1, shift=1, overlap=0)[source]
transform(ds)[source]

Connectivity

update_ds(ds, windows_start)[source]
class sekupy.preprocessing.connectivity.SpeedEstimator(name='speed_tc', **kwargs)[source]
transform(ds, metric='euclidean')[source]

Transform the provided dataset.

This method applies the transformation to the dataset and records the transformation in the dataset’s preprocessing history.

Parameters:

ds (Dataset) – The dataset to transform

Returns:

The transformed dataset

Return type:

Dataset