class_docstr: Interactions encoded as a sequence matrix.
  
  Parameters
  ----------
  
  sequences: array of np.int32 of shape (num_sequences x max_sequence_length)
      The interactions sequence matrix, as produced by
      :func:`~Interactions.to_sequence`
  num_items: int, optional
      The number of distinct items in the data
  
  Attributes
  ----------
  
  sequences: array of np.int32 of shape (num_sequences x max_sequence_length)
      The interactions sequence matrix, as produced by
      :func:`~Interactions.to_sequence`
class_docstr_tok: ["Interactions","encoded","as","a","sequence","matrix",".","Parameters","--","--","--","--","--","sequences",":","array","of","np.int32","of","shape","(","num_sequences","x","max_sequence_length",")","The","interactions","sequence","matrix",",","as","produced","by",":","func",":","`","~Interactions.to_sequence","`","num_items",":","int",",","optional","The","number","of","distinct","items","in","the","data","Attributes","--","--","--","--","--","sequences",":","array","of","np.int32","of","shape","(","num_sequences","x","max_sequence_length",")","The","interactions","sequence","matrix",",","as","produced","by",":","func",":","`","~Interactions.to_sequence","`"]
code: def __init__(self, sequences, user_ids=None, num_items=None):
      self.sequences = sequences
      self.user_ids = user_ids
      self.max_sequence_length = sequences.shape[1]
  
      if num_items is None:
          self.num_items = sequences.max() + 1
      else:
          self.num_items = num_items
  
file_path: spotlight/spotlight/interactions.py
imports: import numpy
  import scipy.sparse
label_desc: Use image node_id 1 to create a new SequenceInteractions object from inherited base classes: object with example: obj = SequenceInteractions(sequences, user_ids, num_items)