public class LIMEExplanation extends Object implements Explanation<Regressor>
Explanation
using LIME.
Wraps a SparseModel
Regressor
which is trained to predict the probabilities
generated by the true Model
.
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 and Description |
---|
LIMEExplanation(SparseModel<Regressor> model,
Prediction<Label> prediction,
RegressionEvaluation evaluation) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getActiveFeatures()
Returns the names of the active features in this explanation.
|
RegressionEvaluation |
getEvaluation()
Gets the evaluator which scores how close the sparse model's
predictions are to the complex model's predictions.
|
SparseModel<Regressor> |
getModel()
Returns the explanining model.
|
Prediction<Label> |
getPrediction()
The original model's prediction which is being explained.
|
double |
getRMSE(String name)
Get the RMSE of a specific dimension of the explanation model.
|
String |
toString() |
public LIMEExplanation(SparseModel<Regressor> model, Prediction<Label> prediction, RegressionEvaluation evaluation)
public List<String> getActiveFeatures()
Explanation
getActiveFeatures
in interface Explanation<Regressor>
public SparseModel<Regressor> getModel()
Explanation
getModel
in interface Explanation<Regressor>
public Prediction<Label> getPrediction()
Explanation
getPrediction
in interface Explanation<Regressor>
public RegressionEvaluation getEvaluation()
public double getRMSE(String name)
name
- The dimension to look at.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.