Core Module Documentation#

class neuralprophet.components.base.BaseComponent(n_forecasts, quantiles, id_list, device)#
abstract forward(x)#

Needs to be implemented by subclass.

Parameters
  • t (torch.Tensor float) – normalized time, dim: (batch, n_forecasts)

  • meta (dict) –

    Metadata about the all the samples of the model input batch. Contains the following:
    • df_name (list, str), time series ID corresponding to each sample of the input batch.

Returns

Component forecast, same dimensions as input t

Return type

torch.Tensor