BPt.extensions.Identity#

class BPt.extensions.Identity[source]#

This loader will simply flatten the input object, if not already. This loader is used to for example pass along loaded surfaces or volumes to a PCA or other similar transformation.

This object is designed to be used with input class BPt.Loader for operating on single subjects at a time.

Methods

fit(X[, y])

Fit accepts anything for X, and doesn't do anything except save the original shape of X.

fit_transform(X[, y])

Calls fit then transform, and returns the transformed output.

get_params([deep])

Get parameters for this estimator.

inverse_transform(X_trans)

Inverse transform, i.e., un-flatten.

set_params(**params)

Set the parameters of this estimator.

transform(X)

Transform simply returns a flattened version of the passed X, making it compatible with downstream classifiers.