docstr: Please refer to the docs of MetaTaskDS for the description of the variables
docstr_tok: ["Please","refer","to","the","docs","of","MetaTaskDS","for","the","description","of","the","variables"]
code: def forward(
      self, X, y, time_perf, time_belong, X_test, ignore_weight=False
  ):
      """Please refer to the docs of MetaTaskDS for the description of the variables"""
      weights = self.get_sample_weights(
          X, time_perf, time_belong, ignore_weight=ignore_weight
      )
      X_w = X.T * weights.view(1, -1)
      theta = (
          torch.inverse(X_w @ X + self.alpha * torch.eye(X_w.shape[0]))
          @ X_w
          @ y
      )
      return X_test @ theta, weights
  
file_path: qlib/qlib/contrib/meta/data_selection/net.py
imports: import numpy
  import torch
  from torch import nn
  from .utils import preds_to_weight_with_clamp, SingleMetaBase
label_desc: Use image node_id 3 for calling the PredNet obj's underlying member method code with example usage: obj.forward(X, y, time_perf, time_belong, X_test, ignore_weight) and returns: unknown,  weights