class_docstr: Parent class for bias direction classes.
  
  # Parameters
  
  requires_grad : `bool`, optional (default=`False`)
      Option to enable gradient calculation.
class_docstr_tok: ["Parent","class","for","bias","direction","classes",".","#","Parameters","requires_grad",":","`","bool","`",",","optional","(","default=","`","False","`",")","Option","to","enable","gradient","calculation","."]
code: def __init__(self, requires_grad: bool = False):
      self.requires_grad = requires_grad
  
file_path: allennlp/allennlp/fairness/bias_direction.py
imports: import torch
  import sklearn
  import numpy
  from allennlp.common.checks import ConfigurationError
label_desc: Use image node_id 1 to create a new BiasDirection object  with example: obj = BiasDirection(requires_grad)