eurocropsml.dataset.utils.pad_seq_to_366ΒΆ

pad_seq_to_366(seq: ndarray, dates: Tensor, padding_value: float = -1.0) ndarrayΒΆ

Pad sequence to 366 days.

Parameters:
  • seq – Tensor containing sequence data to be padded.

  • dates – Tensor of matching size specifying the dates associated to each the sequences data point.

  • padding_value – Value used for padding.

Returns:

A padded sequence data array with all missing dates filled in by a

padding_value-mask value.