TabularLIME¶
-
class
TabularLIME.TabularLIME(inputCol=None, model=None, nSamples=1000, outputCol=None, predictionCol='prediction', regularization=0.0, samplingFraction=0.3)[source]¶ Bases:
mmlspark.Utils.ComplexParamsMixin,pyspark.ml.util.JavaMLReadable,pyspark.ml.util.JavaMLWritable,pyspark.ml.wrapper.JavaEstimatorParameters: - inputCol (str) – The name of the input column
- model (object) – Model to try to locally approximate
- nSamples (int) – The number of samples to generate (default: 1000)
- outputCol (str) – The name of the output column
- predictionCol (str) – prediction column name (default: prediction)
- regularization (double) – regularization param for the lasso (default: 0.0)
- samplingFraction (double) – The fraction of superpixels to keep on (default: 0.3)
-
getRegularization()[source]¶ Returns: regularization param for the lasso (default: 0.0) Return type: double
-
getSamplingFraction()[source]¶ Returns: The fraction of superpixels to keep on (default: 0.3) Return type: double
-
setNSamples(value)[source]¶ Parameters: nSamples (int) – The number of samples to generate (default: 1000)
-
setParams(inputCol=None, model=None, nSamples=1000, outputCol=None, predictionCol='prediction', regularization=0.0, samplingFraction=0.3)[source]¶ Set the (keyword only) parameters
Parameters: - inputCol (str) – The name of the input column
- model (object) – Model to try to locally approximate
- nSamples (int) – The number of samples to generate (default: 1000)
- outputCol (str) – The name of the output column
- predictionCol (str) – prediction column name (default: prediction)
- regularization (double) – regularization param for the lasso (default: 0.0)
- samplingFraction (double) – The fraction of superpixels to keep on (default: 0.3)
-
setPredictionCol(value)[source]¶ Parameters: predictionCol (str) – prediction column name (default: prediction)
-
class
TabularLIME.TabularLIMEModel(java_model=None)[source]¶ Bases:
mmlspark.Utils.ComplexParamsMixin,pyspark.ml.wrapper.JavaModel,pyspark.ml.util.JavaMLWritable,pyspark.ml.util.JavaMLReadableModel fitted by
TabularLIME.This class is left empty on purpose. All necessary methods are exposed through inheritance.