integer_histogram#

pytorch_forecasting.utils.integer_histogram(data: LongTensor, min: Optional[int] = None, max: Optional[int] = None) Tensor[source]#

Create histogram of integers in predefined range

Parameters
  • data – data for which to create histogram

  • min – minimum of histogram, is inferred from data by default

  • max – maximum of histogram, is inferred from data by default

Returns

histogram