Class LIMETextCLI
java.lang.Object
org.tribuo.classification.explanations.lime.LIMETextCLI
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.command.CommandGroup
A CLI for interacting with
LIMEText
. Uses a simple tokenisation and text extraction pipeline.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.oracle.labs.mlrg.olcut.command.CommandInterpreter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfeatureInfo
(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, String featureName) org.jline.reader.Completer[]
generatesProbabilities
(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) getName()
static void
minCount
(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int minCount) modelDescription
(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) numFeatures
(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) outputInfo
(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) setNumFeatures
(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int newNumFeatures) setNumSamples
(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int newNumSamples) showLabelStats
(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) void
Start the command shelltopFeatures
(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int numFeatures)
-
Field Details
-
shell
-
-
Constructor Details
-
LIMETextCLI
public LIMETextCLI()
-
-
Method Details
-
getName
-
getDescription
- Specified by:
getDescription
in interfacecom.oracle.labs.mlrg.olcut.command.CommandGroup
-
fileCompleter
-
startShell
Start the command shell -
loadModel
-
generatesProbabilities
@Command(usage="Does the model generate probabilities") public String generatesProbabilities(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) -
modelDescription
@Command(usage="Shows the model description") public String modelDescription(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) -
featureInfo
@Command(usage="Shows the information on a particular feature") public String featureInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, String featureName) -
outputInfo
@Command(usage="Shows the output information.") public String outputInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) -
topFeatures
@Command(usage="<int> - Shows the top N features in the model") public String topFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int numFeatures) -
numFeatures
@Command(usage="Shows the number of features in the model") public String numFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) -
minCount
-
showLabelStats
@Command(usage="Shows the output statistics") public String showLabelStats(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) -
setNumSamples
@Command(usage="Sets the number of samples to use in LIME") public String setNumSamples(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int newNumSamples) -
explain
-
setNumFeatures
@Command(usage="Sets the number of features LIME should use in an explanation") public String setNumFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int newNumFeatures) -
predict
-
main
-