TabularLIMEModel¶
-
class
TabularLIMEModel.
TabularLIMEModel
(columnMeans=None, columnSTDs=None, inputCol=None, model=None, nSamples=None, outputCol=None, predictionCol='prediction', regularization=None, samplingFraction=None)[source]¶ Bases:
mmlspark.Utils.ComplexParamsMixin
,pyspark.ml.util.JavaMLReadable
,pyspark.ml.util.JavaMLWritable
,pyspark.ml.wrapper.JavaTransformer
Parameters: - columnMeans (object) – the means of each of the columns for perturbation
- columnSTDs (object) – the standard deviations of each of the columns for perturbation
- inputCol (str) – The name of the input column
- model (object) – Model to try to locally approximate
- nSamples (int) – The number of samples to generate
- outputCol (str) – The name of the output column
- predictionCol (str) – prediction column name (default: prediction)
- regularization (double) – regularization param for the lasso
- samplingFraction (double) – The fraction of superpixels to keep on
-
getColumnMeans
()[source]¶ Returns: the means of each of the columns for perturbation Return type: object
-
getColumnSTDs
()[source]¶ Returns: the standard deviations of each of the columns for perturbation Return type: object
-
setColumnMeans
(value)[source]¶ Parameters: columnMeans (object) – the means of each of the columns for perturbation
-
setColumnSTDs
(value)[source]¶ Parameters: columnSTDs (object) – the standard deviations of each of the columns for perturbation
-
setParams
(columnMeans=None, columnSTDs=None, inputCol=None, model=None, nSamples=None, outputCol=None, predictionCol='prediction', regularization=None, samplingFraction=None)[source]¶ Set the (keyword only) parameters
Parameters: - columnMeans (object) – the means of each of the columns for perturbation
- columnSTDs (object) – the standard deviations of each of the columns for perturbation
- inputCol (str) – The name of the input column
- model (object) – Model to try to locally approximate
- nSamples (int) – The number of samples to generate
- outputCol (str) – The name of the output column
- predictionCol (str) – prediction column name (default: prediction)
- regularization (double) – regularization param for the lasso
- samplingFraction (double) – The fraction of superpixels to keep on
-
setPredictionCol
(value)[source]¶ Parameters: predictionCol (str) – prediction column name (default: prediction)