Class LIMEColumnar

java.lang.Object
org.tribuo.classification.explanations.lime.LIMEBase
org.tribuo.classification.explanations.lime.LIMEColumnar
All Implemented Interfaces:
ColumnarExplainer<Regressor>, TabularExplainer<Regressor>

public class LIMEColumnar extends LIMEBase implements ColumnarExplainer<Regressor>
Uses the columnar data processing infrastructure to mix text and tabular data.

If the supplied RowProcessor doesn't reference any text or binarised fields then it delegates to LIMEBase.explain(org.tribuo.Example<org.tribuo.classification.Label>), though it's still more expensive at construction time.

See:

 Ribeiro MT, Singh S, Guestrin C.
 "Why should I trust you?: Explaining the predictions of any classifier"
 Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining 2016.
 
  • Constructor Details

    • LIMEColumnar

      public LIMEColumnar(SplittableRandom rng, org.tribuo.Model<Label> innerModel, org.tribuo.SparseTrainer<Regressor> explanationTrainer, int numSamples, RowProcessor<Label> exampleGenerator, Tokenizer tokenizer)
      Constructs a LIME explainer for a model which uses the columnar data processing system.
      Parameters:
      rng - The rng to use for sampling.
      innerModel - The model to explain.
      explanationTrainer - The trainer for the sparse model used to explain.
      numSamples - The number of samples to generate in each explanation.
      exampleGenerator - The RowProcessor which converts columnar data into an Example.
      tokenizer - The tokenizer to use on any text fields.
  • Method Details