class_docstr: Stores the feature attributions for a single label in the target feature's vocab.
class_docstr_tok: ["Stores","the","feature","attributions","for","a","single","label","in","the","target","feature","'s","vocab","."]
docstr: Add the attribution for a single input feature.
docstr_tok: ["Add","the","attribution","for","a","single","input","feature","."]
code: def add(
      self,
      feature_name: str,
      attribution: float,
      token_attributions: List[Tuple[str, float]] = None,
  ):
      """Add the attribution for a single input feature."""
      self.feature_attributions.append(
          FeatureAttribution(
              feature_name, attribution, token_attributions
          )
      )
  
file_path: ludwig/ludwig/explain/explanation.py
imports: from dataclasses import dataclass, field
  from typing import Dict, List, Tuple
  import numpy
  import numpy.typing
  from ludwig.api_annotations import DeveloperAPI, PublicAPI
label_desc: Use image node_id 1 for calling the LabelExplanation obj's underlying member method code with example usage: obj.add(feature_name, attribution, token_attributions) without return types