docstr: restore model from file
  :param checkpoint_file: the model file
  :param config: the trial config
  :return: the restored model
docstr_tok: ["restore","model","from","file",":","param","checkpoint_file",":","the","model","file",":","param","config",":","the","trial","config",":","return",":","the","restored","model"]
code: def restore(self, checkpoint_file, **config):
      """
      restore model from file
      :param checkpoint_file: the model file
      :param config: the trial config
      :return: the restored model
      """
      with open(checkpoint_file, "rb") as f:
          state_dict = pickle.load(f)
      config = state_dict["config"]
  
      self.past_seq_len = config["past_seq_len"]
      self.feature_num = config["feature_num"]
      self.future_seq_len = config["future_seq_len"]
      self.target_col_num = config["target_col_num"]
      self.metric = config["metric"]
      self.latent_dim = config["latent_dim"]
      self.batch_size = config["batch_size"]
  
      self._build_train(**config)
      self.model.set_weights(state_dict["weights"])
      self._restore_model()
  
imports: import pickle
  import numpy
  from tensorflow.keras.models import Model
  from tensorflow.keras.layers import Input, LSTM, Dense
  import tensorflow.keras
  from bigdl.orca.automl.model.abstract import BaseModel
  from bigdl.orca.automl.metrics import Evaluator
label_desc: Use image node_id 16 for calling the LSTMSeq2Seq obj's underlying member method code with example usage: obj.restore(checkpoint_file) without return types