Class LIMETextCLI
java.lang.Object
org.tribuo.classification.explanations.lime.LIMETextCLI
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.command.CommandGroup
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCommand line options. -
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 voidminCount(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) voidStart the command shelltopFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int numFeatures)
-
Field Details
-
shell
protected com.oracle.labs.mlrg.olcut.command.CommandInterpreter shell
-
-
Constructor Details
-
LIMETextCLI
public LIMETextCLI()
-
-
Method Details
-
getName
- Specified by:
getNamein interfacecom.oracle.labs.mlrg.olcut.command.CommandGroup
-
getDescription
- Specified by:
getDescriptionin interfacecom.oracle.labs.mlrg.olcut.command.CommandGroup
-
fileCompleter
public org.jline.reader.Completer[] fileCompleter() -
startShell
public void 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
-
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
@Command(usage="<min count> - Shows the number of features that occurred more than min count times.") public String minCount(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int 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
-