SequenceData

pycave.bayes.markov_chain.types.SequenceData

Data that may be passed to estimators expecting 1-D sequences. Data may be provided in multiple formats:

  • NumPy array of shape [num_sequences, sequence_length].

  • PyTorch tensor of shape [num_sequences, sequence_length].

  • PyTorch dataset yielding items of shape [sequence_length] where the sequence length may differ for different indices.

alias of Union[numpy.ndarray, torch.Tensor, torch.utils.data.Dataset[torch.Tensor]]