class_docstr: Computes a weighted penalty for embeddings involved in score computations.
class_docstr_tok: ["Computes","a","weighted","penalty","for","embeddings","involved","in","score","computations","."]
code: def __init__(self, weight):
      self.weight = weight
  
file_path: PyTorch-BigGraph/torchbiggraph/regularizers.py
imports: from abc import ABC, abstractmethod
  from typing import Optional
  import torch
  import torchbiggraph.model
  from torchbiggraph.operators import AbstractDynamicOperator, AbstractOperator
  from torchbiggraph.plugin import PluginRegistry
  from torchbiggraph.types import FloatTensorType, LongTensorType
label_desc: Use image node_id 1 to create a new AbstractRegularizer object from inherited base classes: ABC with example: obj = AbstractRegularizer(weight)