class_docstr: TimeSequence feature engineering
docstr: Transform data into features using the preset of configurations from fit_transform
  :param input_df: The input time series data frame.
   Example:
   datetime   value   "extra feature 1"   "extra feature 2"
   2019-01-01  1.9         1                       2
   2019-01-02  2.3         0                       2
  :param mode: 'val'/'test'.
  :return: tuple (x,y)
      x: 3-d array in format (no. of samples, past sequence length, 2+feature length),
      in the last dimension, the 1st col is the time index
      (data type needs to be numpy datetime type, e.g. "datetime64"),
      the 2nd col is the target value (data type should be numeric)
      y: y is 2-d numpy array in format (no. of samples, future sequence length)
      if future sequence length > 1, or 1-d numpy array in format (no. of samples, )
      if future sequence length = 1
docstr_tok: ["Transform","data","into","features","using","the","preset","of","configurations","from","fit_transform",":","param","input_df",":","The","input","time","series","data","frame",".","Example",":","datetime","value","``","extra","feature","1","''","``","extra","feature","2","''","2019-01-01","1.9","1","2","2019-01-02","2.3","0","2",":","param","mode",":","'val'\/'test","'",".",":","return",":","tuple","(","x",",","y",")","x",":","3-d","array","in","format","(","no",".","of","samples",",","past","sequence","length",",","2+feature","length",")",",","in","the","last","dimension",",","the","1st","col","is","the","time","index","(","data","type","needs","to","be","numpy","datetime","type",",","e.g",".","``","datetime64","''",")",",","the","2nd","col","is","the","target","value","(","data","type","should","be","numeric",")","y",":","y","is","2-d","numpy","array","in","format","(","no",".","of","samples",",","future","sequence","length",")","if","future","sequence","length",">","1",",","or","1-d","numpy","array","in","format","(","no",".","of","samples",",",")","if","future","sequence","length","=","1"]
code: def _transform(self, input_df, mode):
      """
      Transform data into features using the preset of configurations from fit_transform
      :param input_df: The input time series data frame.
       Example:
       datetime   value   "extra feature 1"   "extra feature 2"
       2019-01-01  1.9         1                       2
       2019-01-02  2.3         0                       2
      :param mode: 'val'/'test'.
      :return: tuple (x,y)
          x: 3-d array in format (no. of samples, past sequence length, 2+feature length),
          in the last dimension, the 1st col is the time index
          (data type needs to be numpy datetime type, e.g. "datetime64"),
          the 2nd col is the target value (data type should be numeric)
          y: y is 2-d numpy array in format (no. of samples, future sequence length)
          if future sequence length > 1, or 1-d numpy array in format (no. of samples, )
          if future sequence length = 1
      """
      self._check_input(input_df, mode)
      # generate features
      feature_data = self._get_features(input_df, self.config)
      # select and standardize data
      data_n = self._scale(feature_data)
      if mode == "val":
          (x, y) = self._roll_train(
              data_n,
              past_seq_len=self.past_seq_len,
              future_seq_len=self.future_seq_len,
          )
          return x, y
      else:
          x = self._roll_test(data_n, past_seq_len=self.past_seq_len)
          return x, None
  
imports: from zoo.chronos.autots.deprecated.feature.utils import save_config
  from zoo.chronos.autots.deprecated.feature.abstract import BaseFeatureTransformer
  from zoo.chronos.utils import deprecated
  import sklearn
  from sklearn.preprocessing import StandardScaler
  import pandas
  import numpy
  import json
  from packaging import version
label_desc: Use image node_id 4 for calling the TimeSequenceFeatureTransformer obj's underlying member method code with example usage: obj._transform(input_df, mode) and returns: x,  y, x,  None