class_docstr: Object returned by explainers.
docstr: Returns the explanation as a list.
  
  Args:
      label: desired label. If you ask for a label for which an
          explanation wasn't computed, will throw an exception.
          Will be ignored for regression explanations.
      kwargs: keyword arguments, passed to domain_mapper
  
  Returns:
      list of tuples (representation, weight), where representation is
      given by domain_mapper. Weight is a float.
docstr_tok: ["Returns","the","explanation","as","a","list",".","Args",":","label",":","desired","label",".","If","you","ask","for","a","label","for","which","an","explanation","was","n't","computed",",","will","throw","an","exception",".","Will","be","ignored","for","regression","explanations",".","kwargs",":","keyword","arguments",",","passed","to","domain_mapper","Returns",":","list","of","tuples","(","representation",",","weight",")",",","where","representation","is","given","by","domain_mapper",".","Weight","is","a","float","."]
code: def as_list(self, label=1, **kwargs):
      """Returns the explanation as a list.
  
      Args:
          label: desired label. If you ask for a label for which an
              explanation wasn't computed, will throw an exception.
              Will be ignored for regression explanations.
          kwargs: keyword arguments, passed to domain_mapper
  
      Returns:
          list of tuples (representation, weight), where representation is
          given by domain_mapper. Weight is a float.
      """
      label_to_use = (
          label if self.mode == "classification" else self.dummy_label
      )
      ans = self.domain_mapper.map_exp_ids(
          self.local_exp[label_to_use], **kwargs
      )
      ans = [(x[0], float(x[1])) for x in ans]
      return ans
  
imports: from io import open
  import os
  import os.path
  import json
  import string
  import numpy
  from .exceptions import LimeError
  from sklearn.utils import check_random_state
label_desc: Use image node_id 3 for calling the Explanation obj's underlying member method code with example usage: obj.as_list(label) and returns: ans