docstr: This method prepares the underlying time series numerical encoder.
docstr_tok: ["This","method","prepares","the","underlying","time","series","numerical","encoder","."]
code: def prepare(self, priming_data):
      """
      This method prepares the underlying time series numerical encoder.
      """
      if self.is_prepared:
          raise Exception(
              'You can only call "prepare" once for a given encoder.'
          )
  
      self.sub_encoder.prepare(priming_data)
      self.output_size = self.data_window * self.sub_encoder.output_size
      self.rev_map = self.sub_encoder.rev_map
      self.is_prepared = True
  
file_path: lightwood/lightwood/encoder/array/ts_cat_array.py
imports: from typing import List, Dict, Iterable, Optional
  import torch
  import torch.nn.functional
  from lightwood.encoder import BaseEncoder
  from lightwood.encoder.categorical import OneHotEncoder
label_desc: Use image node_id 2 for calling the TsCatArrayEncoder obj's underlying member method code with example usage: obj.prepare(priming_data) without return types