class_docstr: Abstract class for all encoders
class_docstr_tok: ["Abstract","class","for","all","encoders"]
docstr: Each subclass must implement a method to encode the covariates index for training.
  
  Parameters
  ----------
  target
      The target TimeSeries used during training or passed to prediction as `series`.
  covariates
      Optionally, the past or future covariates used for training.
  merge_covariates
      Whether to merge the encoded TimeSeries with `covariates`.
docstr_tok: ["Each","subclass","must","implement","a","method","to","encode","the","covariates","index","for","training",".","Parameters","--","--","--","--","--","target","The","target","TimeSeries","used","during","training","or","passed","to","prediction","as","`","series","`",".","covariates","Optionally",",","the","past","or","future","covariates","used","for","training",".","merge_covariates","Whether","to","merge","the","encoded","TimeSeries","with","`","covariates","`","."]
code: def encode_train(
      self,
      target: TimeSeries,
      covariates: Optional[TimeSeries] = None,
      merge_covariates: bool = True,
      **kwargs,
  ) -> TimeSeries:
      """Each subclass must implement a method to encode the covariates index for training.
  
      Parameters
      ----------
      target
          The target TimeSeries used during training or passed to prediction as `series`.
      covariates
          Optionally, the past or future covariates used for training.
      merge_covariates
          Whether to merge the encoded TimeSeries with `covariates`.
      """
      pass
  
imports: from abc import ABC, abstractmethod
  from typing import List, Optional, Sequence, Tuple, Union
  import numpy
  import pandas
  from darts import TimeSeries
  from darts.dataprocessing.transformers import FittableDataTransformer
  from darts.logging import get_logger, raise_if, raise_log
  from darts.utils.timeseries_generation import generate_index
label_desc: Use image node_id 2 for calling the Encoder obj's underlying member method code with example usage: obj.encode_train(target, covariates, merge_covariates) without return types