class_docstr: Decorator pattern. It simply iterates the method of its member as many times as needed.
  It thus extends any class to apply its methods to a list of arguments.
class_docstr_tok: ["Decorator","pattern",".","It","simply","iterates","the","method","of","its","member","as","many","times","as","needed",".","It","thus","extends","any","class","to","apply","its","methods","to","a","list","of","arguments","."]
docstr: Override assign_contributions from SmartState. Turn a nested list into a dict of lists.
  
  Parameters
  ----------
  ranked : list
      Nested list coming from multiple applications of rank_contributions.
  
  Returns
  -------
  dict
      Dictionary containing three keys, and whose values are the successive results.
  
  Raises
  ------
  ValueError
      The output of a single call to rank_contributions should always be of length three.
docstr_tok: ["Override","assign_contributions","from","SmartState",".","Turn","a","nested","list","into","a","dict","of","lists",".","Parameters","--","--","--","--","--","ranked",":","list","Nested","list","coming","from","multiple","applications","of","rank_contributions",".","Returns","--","--","--","-","dict","Dictionary","containing","three","keys",",","and","whose","values","are","the","successive","results",".","Raises","--","--","--","ValueError","The","output","of","a","single","call","to","rank_contributions","should","always","be","of","length","three","."]
code: def assign_contributions(self, ranked):
      """
      Override assign_contributions from SmartState. Turn a nested list into a dict of lists.
  
      Parameters
      ----------
      ranked : list
          Nested list coming from multiple applications of rank_contributions.
  
      Returns
      -------
      dict
          Dictionary containing three keys, and whose values are the successive results.
  
      Raises
      ------
      ValueError
          The output of a single call to rank_contributions should always be of length three.
      """
      dicts = self.delegate("assign_contributions", ranked)
      keys = list(dicts[0].keys())
      return {key: [d[key] for d in dicts] for key in keys}
  
file_path: shapash/shapash/explainer/multi_decorator.py
imports: from shapash.explainer.smart_state import SmartState
label_desc: Use image node_id 7 for calling the MultiDecorator obj's underlying member method code with example usage: obj.assign_contributions(ranked) and returns: unknown