class_docstr: Base class for all drug target encoder-decoder architecture models, which is based on pytorch lightning wrapper,
  for more details about pytorch lightning, please check https://github.com/PyTorchLightning/pytorch-lightning.
  If you inherit from this class, a forward pass function must be implemented.
  
  Args:
      drug_encoder: drug information encoder.
      target_encoder: target information encoder.
      decoder: drug-target representations decoder.
      lr: learning rate. (default: 0.001)
      ci_metric: calculate the Concordance Index (CI) metric, and the operation is time-consuming for large-scale
      dataset. (default: :obj:`False`)
class_docstr_tok: ["Base","class","for","all","drug","target","encoder-decoder","architecture","models",",","which","is","based","on","pytorch","lightning","wrapper",",","for","more","details","about","pytorch","lightning",",","please","check","https",":","\/\/github.com\/PyTorchLightning\/pytorch-lightning",".","If","you","inherit","from","this","class",",","a","forward","pass","function","must","be","implemented",".","Args",":","drug_encoder",":","drug","information","encoder",".","target_encoder",":","target","information","encoder",".","decoder",":","drug-target","representations","decoder",".","lr",":","learning","rate",".","(","default",":","0.001",")","ci_metric",":","calculate","the","Concordance","Index","(","CI",")","metric",",","and","the","operation","is","time-consuming","for","large-scale","dataset",".","(","default",":",":","obj",":","`","False","`",")"]
docstr: Same as :meth:`torch.nn.Module.forward()`
docstr_tok: ["Same","as",":","meth",":","`","torch.nn.Module.forward","(",")","`"]
code: def forward(self, x_drug, x_target):
      """
      Same as :meth:`torch.nn.Module.forward()`
      """
      raise NotImplementedError("Forward pass needs to be defined.")
  
file_path: pykale/kale/pipeline/deepdta.py
imports: import pytorch_lightning
  import torch
  from torch.nn import functional
  from kale.evaluate.metrics import concord_index
label_desc: Use image node_id 3 for calling the BaseDTATrainer obj's underlying member method code with example usage: obj.forward(x_drug, x_target) without return types