SignalModelΒΆ

Defined in fynance.core

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

Bases: Protocol

A predictive model mapping features to a target/signal.

The numpy boundary of the model layer: predict returns numpy even when the implementation is pytorch internally.

fit(X, y)[source]

Fit the model and return self.

predict(X)[source]

Return predictions as a numpy array.