code: def __init__(self, hist_n, clip_weight=None, clip_method="clamp"):
      # method can be tanh or clamp
      super().__init__()
      self.clip_weight = clip_weight
      if clip_method in ["tanh", "clamp"]:
          if self.clip_weight is not None and self.clip_weight < 1.0:
              self.clip_weight = 1 / self.clip_weight
      self.clip_method = clip_method
  
file_path: qlib/qlib/contrib/meta/data_selection/utils.py
imports: import numpy
  import torch
  from torch import nn
  from qlib.constant import EPS
  from qlib.log import get_module_logger
label_desc: Use image node_id 1 to create a new SingleMetaBase object from inherited base classes: nn with example: obj = SingleMetaBase(hist_n, clip_weight, clip_method)