Synapseml
0.10.0
|
TextLIME implements TextLIME More...
Public Member Functions | |
TextLIME () | |
Creates a TextLIME without any parameters. More... | |
TextLIME (string uid) | |
Creates a TextLIME with a UID that is used to give the TextLIME a unique ID. More... | |
TextLIME | SetInputCol (string value) |
Sets value for inputCol More... | |
TextLIME | SetKernelWidth (double value) |
Sets value for kernelWidth More... | |
TextLIME | SetMetricsCol (string value) |
Sets value for metricsCol More... | |
TextLIME | SetModel (JavaTransformer value) |
Sets value for model More... | |
TextLIME | SetNumSamples (int value) |
Sets value for numSamples More... | |
TextLIME | SetOutputCol (string value) |
Sets value for outputCol More... | |
TextLIME | SetRegularization (double value) |
Sets value for regularization More... | |
TextLIME | SetSamplingFraction (double value) |
Sets value for samplingFraction More... | |
TextLIME | SetTargetClasses (int[] value) |
Sets value for targetClasses More... | |
TextLIME | SetTargetClassesCol (string value) |
Sets value for targetClassesCol More... | |
TextLIME | SetTargetCol (string value) |
Sets value for targetCol More... | |
TextLIME | SetTokensCol (string value) |
Sets value for tokensCol More... | |
string | GetInputCol () |
Gets inputCol value More... | |
double | GetKernelWidth () |
Gets kernelWidth value More... | |
string | GetMetricsCol () |
Gets metricsCol value More... | |
JavaTransformer | GetModel () |
Gets model value More... | |
int | GetNumSamples () |
Gets numSamples value More... | |
string | GetOutputCol () |
Gets outputCol value More... | |
double | GetRegularization () |
Gets regularization value More... | |
double | GetSamplingFraction () |
Gets samplingFraction value More... | |
int [] | GetTargetClasses () |
Gets targetClasses value More... | |
string | GetTargetClassesCol () |
Gets targetClassesCol value More... | |
string | GetTargetCol () |
Gets targetCol value More... | |
string | GetTokensCol () |
Gets tokensCol value More... | |
void | Save (string path) |
Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala. More... | |
JavaMLWriter | Write () |
| |
JavaMLReader< TextLIME > | Read () |
Get the corresponding JavaMLReader instance. More... | |
Static Public Member Functions | |
static TextLIME | Load (string path) |
Loads the TextLIME that was previously saved using Save(string). More... | |
|
inline |
Creates a TextLIME without any parameters.
|
inline |
string Synapse.ML.Explainers.TextLIME.GetInputCol | ( | ) |
Gets inputCol value
double Synapse.ML.Explainers.TextLIME.GetKernelWidth | ( | ) |
Gets kernelWidth value
string Synapse.ML.Explainers.TextLIME.GetMetricsCol | ( | ) |
Gets metricsCol value
|
inline |
Gets model value
int Synapse.ML.Explainers.TextLIME.GetNumSamples | ( | ) |
Gets numSamples value
string Synapse.ML.Explainers.TextLIME.GetOutputCol | ( | ) |
Gets outputCol value
double Synapse.ML.Explainers.TextLIME.GetRegularization | ( | ) |
Gets regularization value
double Synapse.ML.Explainers.TextLIME.GetSamplingFraction | ( | ) |
Gets samplingFraction value
int [] Synapse.ML.Explainers.TextLIME.GetTargetClasses | ( | ) |
Gets targetClasses value
string Synapse.ML.Explainers.TextLIME.GetTargetClassesCol | ( | ) |
Gets targetClassesCol value
string Synapse.ML.Explainers.TextLIME.GetTargetCol | ( | ) |
Gets targetCol value
string Synapse.ML.Explainers.TextLIME.GetTokensCol | ( | ) |
Gets tokensCol value
|
static |
Loads the TextLIME that was previously saved using Save(string).
path | The path the previous TextLIME was saved to |
JavaMLReader<TextLIME> Synapse.ML.Explainers.TextLIME.Read | ( | ) |
Get the corresponding JavaMLReader instance.
void Synapse.ML.Explainers.TextLIME.Save | ( | string | path | ) |
Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala.
path | The path to save the object to |
TextLIME Synapse.ML.Explainers.TextLIME.SetInputCol | ( | string | value | ) |
TextLIME Synapse.ML.Explainers.TextLIME.SetKernelWidth | ( | double | value | ) |
Sets value for kernelWidth
value | Kernel width. Default value: sqrt (number of features) * 0.75 |
TextLIME Synapse.ML.Explainers.TextLIME.SetMetricsCol | ( | string | value | ) |
Sets value for metricsCol
value | Column name for fitting metrics |
TextLIME Synapse.ML.Explainers.TextLIME.SetModel | ( | JavaTransformer | value | ) |
TextLIME Synapse.ML.Explainers.TextLIME.SetNumSamples | ( | int | value | ) |
TextLIME Synapse.ML.Explainers.TextLIME.SetOutputCol | ( | string | value | ) |
TextLIME Synapse.ML.Explainers.TextLIME.SetRegularization | ( | double | value | ) |
Sets value for regularization
value | Regularization param for the lasso. Default value: 0. |
TextLIME Synapse.ML.Explainers.TextLIME.SetSamplingFraction | ( | double | value | ) |
Sets value for samplingFraction
value | The fraction of superpixels (for image) or tokens (for text) to keep on |
TextLIME Synapse.ML.Explainers.TextLIME.SetTargetClasses | ( | int [] | value | ) |
Sets value for targetClasses
value | The indices of the classes for multinomial classification models. Default: 0.For regression models this parameter is ignored. |
TextLIME Synapse.ML.Explainers.TextLIME.SetTargetClassesCol | ( | string | value | ) |
Sets value for targetClassesCol
value | The name of the column that specifies the indices of the classes for multinomial classification models. |
TextLIME Synapse.ML.Explainers.TextLIME.SetTargetCol | ( | string | value | ) |
Sets value for targetCol
value | The column name of the prediction target to explain (i.e. the response variable). This is usually set to "prediction" for regression models and "probability" for probabilistic classification models. Default value: probability |
TextLIME Synapse.ML.Explainers.TextLIME.SetTokensCol | ( | string | value | ) |