torch_frame.transforms.BaseTransform
- class BaseTransform[source]
Bases:
ABCAn abstract base class for writing transforms.
Transforms are a general way to modify and customize
TensorFrame- abstract forward(tf: TensorFrame) TensorFrame[source]
Process TensorFrame obj into another TensorFrame obj.
- Parameters:
tf (TensorFrame) – Input
TensorFrame.- Returns:
Input
TensorFrameafter transform.- Return type:
- property transformed_stats: dict[str, dict[torch_frame.data.stats.StatType, Any]]
The column stats after the transform.
- Returns:
Transformed column stats. The
TensorFrameobject might be modified by the transform, so the returnedtransformed_statswould contain the column stats of the modifiedTensorFrameobject.- Return type: