generic_model#
- tfts.layers.nbeats_layer.generic_model(theta: Tensor, t_b: Tensor, t_f: Tensor) Tuple[Tensor, Tensor][source]#
Generate the generic backcast and forecast using linear projections.
- Parameters:
theta (tf.Tensor) – Basis expansion coefficients
t_b (tf.Tensor) – Input time index for backcast
t_f (tf.Tensor) – Output time index for forecast
- Returns:
A tuple of (backcast, forecast) tensors
- Return type:
Tuple[tf.Tensor, tf.Tensor]