BPt.extensions.SingleConnectivityMeasure.transform#

SingleConnectivityMeasure.transform(X)[source]#

Apply transform to covariances matrices to get the connectivity matrices for the chosen kind.

Parameters
Xlist of n_subjects numpy.ndarray with shapes (n_samples, n_features)

The input subjects time series. The number of samples may differ from one subject to another.

confoundsnumpy.ndarray with shape (n_samples) or (n_samples, n_confounds), optional

Confounds to be cleaned on the vectorized matrices. Only takes into effect when vetorize=True. This parameter is passed to signal.clean. Please see the related documentation for details.

Returns
outputnumpy.ndarray, shape (n_subjects, n_features, n_features) or (n_subjects, n_features * (n_features + 1) / 2) if vectorize is set to True.

The transformed individual connectivities, as matrices or vectors. Vectors are cleaned when vectorize=True and confounds are provided.