class_docstr: Local Interpretable Model-agnostic Explanations (LIME).
class_docstr_tok: ["Local","Interpretable","Model-agnostic","Explanations","(","LIME",")","."]
docstr: Creates a LIME interpreter.
  
  Args:
    autorun: Determines if this intepreter should run automatically.
    kernel_width: Size of the kernel.
    mask_token: Mask token from the tokenizer
    num_samples: Number of samples to take.
    seed: A seed value for the random seed.
docstr_tok: ["Creates","a","LIME","interpreter",".","Args",":","autorun",":","Determines","if","this","intepreter","should","run","automatically",".","kernel_width",":","Size","of","the","kernel",".","mask_token",":","Mask","token","from","the","tokenizer","num_samples",":","Number","of","samples","to","take",".","seed",":","A","seed","value","for","the","random","seed","."]
code: def __init__(
      self,
      autorun: bool = False,
      kernel_width: int = 256,
      mask_token: str = "[MASK]",
      num_samples: int = 256,
      seed: Optional[int] = None,
  ):
      """Creates a LIME interpreter.
  
      Args:
        autorun: Determines if this intepreter should run automatically.
        kernel_width: Size of the kernel.
        mask_token: Mask token from the tokenizer
        num_samples: Number of samples to take.
        seed: A seed value for the random seed.
      """
      self._autorun: bool = autorun
      self._kernel_width: str = str(kernel_width)
      self._mask_token: str = mask_token
      self._num_samples: str = str(num_samples)
      self._seed: str = str(seed) if seed is not None else ""
  
imports: from collections.abc import Iterable
  import functools
  from typing import Any, Optional
  from absl import logging
  from lit_nlp.api import components
  from lit_nlp.api import dataset
  from lit_nlp.api import dtypes
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.components.citrus import lime
  from lit_nlp.components.citrus import utils
  from lit_nlp.lib import utils
  import numpy
label_desc: Use image node_id 1 to create a new LIME object from inherited base classes: lit_components with example: obj = LIME(autorun, kernel_width, mask_token, num_samples, seed)