topobench.transforms.feature_liftings.duplicate module#

Duplicate input data and possible apply a static transform.

class Duplicate(**kwargs)#

Bases: BaseTransform

A static copy of input data that also applies a set transform.

Parameters:
**kwargsoptional

Parameters for the base transform.

__init__(**kwargs)#
forward(data)#

Apply the transform to the input data.

Parameters:
datatorch_geometric.data.Data

The input data.

Returns:
torch_geometric.data.Data

The same data.

lift_features(data)#

Duplicate r-cell features of a graph to r+1-cell structures and apply an optional transform.

Parameters:
datatorch_geometric.data.Data | dict

The input data to be lifted.

Returns:
torch_geometric.data.Data | dict

The data with the lifted features.