integer_histogram#
- pytorch_forecasting.utils._utils.integer_histogram(data: LongTensor, min: None | int = None, max: None | 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