class_docstr: Data structure for AdditiveForceVisualizer / AdditiveForceArrayVisualizer.
class_docstr_tok: ["Data","structure","for","AdditiveForceVisualizer","\/","AdditiveForceArrayVisualizer","."]
docstr: Parameters
  ----------
  base_value : float
      This is the reference value that the feature contributions start from.
      For SHAP values, it should be the value of ``explainer.expected_value``.
  
  out_value : float
      The model prediction value, taken as the sum of the SHAP values across all
      features and the ``base_value``.
docstr_tok: ["Parameters","--","--","--","--","--","base_value",":","float","This","is","the","reference","value","that","the","feature","contributions","start","from",".","For","SHAP","values",",","it","should","be","the","value","of","``","explainer.expected_value","``",".","out_value",":","float","The","model","prediction","value",",","taken","as","the","sum","of","the","SHAP","values","across","all","features","and","the","``","base_value","``","."]
code: def __init__(
      self,
      base_value,
      out_value,
      effects,
      effects_var,
      instance,
      link,
      model,
      data,
  ):
      """
  
      Parameters
      ----------
      base_value : float
          This is the reference value that the feature contributions start from.
          For SHAP values, it should be the value of ``explainer.expected_value``.
  
      out_value : float
          The model prediction value, taken as the sum of the SHAP values across all
          features and the ``base_value``.
      """
      self.base_value = base_value
      self.out_value = out_value
      self.effects = effects
      self.effects_var = effects_var
      assert isinstance(instance, Instance)
      self.instance = instance
      assert isinstance(link, Link)
      self.link = link
      assert isinstance(model, Model)
      self.model = model
      assert isinstance(data, Data)
      self.data = data
  
imports: import base64
  import json
  import os
  import random
  import re
  import string
  import warnings
  from collections.abc import Sequence
  import numpy
  import pandas
  import scipy.sparse
  from ..plots._force_matplotlib import draw_additive_plot
  from ..utils import hclust_ordering
  from ..utils._exceptions import DimensionError
  from ..utils._legacy import Data, DenseData, Instance, Link, Model, convert_to_link
  from ._labels import labels
label_desc: Use image node_id 1 to create a new AdditiveExplanation object from inherited base classes: Explanation with example: obj = AdditiveExplanation(base_value, out_value, effects, effects_var, instance, link, model, data)