code: def __init__(
      self, hist_step_n, clip_weight=None, clip_method="clamp"
  ):
      # clip_method includes "tanh" or "clamp"
      super().__init__(hist_step_n, clip_weight, clip_method)
      self.linear = nn.Linear(hist_step_n, 1)
      self.k = nn.Parameter(torch.Tensor([8.0]))
  
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 1 to create a new TimeWeightMeta object from inherited base classes: SingleMetaBase with example: obj = TimeWeightMeta(hist_step_n, clip_weight, clip_method)