class_docstr: Calculate predict-level variable attributions as Break Down
  
  Parameters
  -----------
  type : {'break_down_interactions', 'break_down'}
      Type of variable attributions (default is `'break_down_interactions'`).
  order : list of int or str, optional
      Use a fixed order of variables for attribution calculation. Use integer values
      or string variable names (default is `None` which means order by importance).
  interaction_preference : int, optional
      Specify which interactions will be present in an explanation. The larger the
      integer, the more frequently interactions will be presented (default is `1`).
  keep_distributions : bool, optional
      Save the distribution of partial predictions (default is `False`).
  
  Attributes
  -----------
  result : pd.DataFrame
      Main result attribute of an explanation.
  type : {'break_down_interactions', 'break_down'}
      Type of variable attributions.
  order : list of int or str or None
      Order of variables used in attribution calculation.
  interaction_preference : int
      Frequency of interaction use.
  keep_distributions : bool
      Save the distribution of partial predictions.
  yhats_distributions : pd.DataFrame or None
      The distribution of partial predictions.
  
  Notes
  --------
  - https://pbiecek.github.io/ema/breakDown.html
  - https://pbiecek.github.io/ema/iBreakDown.html
class_docstr_tok: ["Calculate","predict-level","variable","attributions","as","Break","Down","Parameters","--","--","--","--","--","-","type",":","{","'break_down_interactions","'",",","'break_down","'","}","Type","of","variable","attributions","(","default","is","`","'break_down_interactions","'","`",")",".","order",":","list","of","int","or","str",",","optional","Use","a","fixed","order","of","variables","for","attribution","calculation",".","Use","integer","values","or","string","variable","names","(","default","is","`","None","`","which","means","order","by","importance",")",".","interaction_preference",":","int",",","optional","Specify","which","interactions","will","be","present","in","an","explanation",".","The","larger","the","integer",",","the","more","frequently","interactions","will","be","presented","(","default","is","`","1","`",")",".","keep_distributions",":","bool",",","optional","Save","the","distribution","of","partial","predictions","(","default","is","`","False","`",")",".","Attributes","--","--","--","--","--","-","result",":","pd.DataFrame","Main","result","attribute","of","an","explanation",".","type",":","{","'break_down_interactions","'",",","'break_down","'","}","Type","of","variable","attributions",".","order",":","list","of","int","or","str","or","None","Order","of","variables","used","in","attribution","calculation",".","interaction_preference",":","int","Frequency","of","interaction","use",".","keep_distributions",":","bool","Save","the","distribution","of","partial","predictions",".","yhats_distributions",":","pd.DataFrame","or","None","The","distribution","of","partial","predictions",".","Notes","--","--","--","--","-","https",":","\/\/pbiecek.github.io\/ema\/breakDown.html","-","https",":","\/\/pbiecek.github.io\/ema\/iBreakDown.html"]
code: def __init__(
      self,
      type="break_down",
      order=None,
      interaction_preference=1,
      keep_distributions=False,
  ):
      _order = checks.check_order(order)
  
      self.type = type
      self.keep_distributions = keep_distributions
      self.order = _order
      self.interaction_preference = interaction_preference
      self.result = pd.DataFrame()
      self.yhats_distributions = None
  
file_path: DALEX/python/dalex/dalex/predict_explanations/_break_down/object.py
imports: import numpy
  import pandas
  from plotly.subplots import make_subplots
  import warnings
  from .None import checks, plot, utils
  from ...None import _theme, _global_checks
  from ..._explanation import Explanation
label_desc: Use image node_id 1 to create a new BreakDown object from inherited base classes: Explanation with example: obj = BreakDown(type, order, interaction_preference, keep_distributions)