FeatureTransformΒΆ

Defined in fynance.core

class FeatureTransform(*args, **kwargs)[source]

Bases: Protocol

A stateful or stateless feature transformation.

fit records only past-derivable parameters (e.g. train-slice mean and std); transform must be causal (output at t uses inputs up to t only).

fit(X)[source]

Fit any parameters and return self.

transform(X)[source]

Return the transformed array.