Modifier and Type | Class and Description |
---|---|
static class |
LIMETextCLI.LIMETextCLIOptions |
Modifier and Type | Field and Description |
---|---|
protected com.oracle.labs.mlrg.olcut.command.CommandInterpreter |
shell |
Constructor and Description |
---|
LIMETextCLI() |
Modifier and Type | Method and Description |
---|---|
String |
explain(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
String[] tokens) |
String |
featureInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
String featureName) |
org.jline.reader.Completer[] |
fileCompleter() |
String |
generatesProbabilities(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) |
String |
getDescription() |
String |
getName() |
String |
loadModel(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
File path) |
static void |
main(String[] args) |
String |
minCount(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
int minCount) |
String |
modelDescription(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) |
String |
numFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) |
String |
outputInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) |
String |
predict(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
String[] tokens) |
String |
setNumFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
int newNumFeatures) |
String |
setNumSamples(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
int newNumSamples) |
String |
showLabelStats(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) |
void |
startShell()
Start the command shell
|
String |
topFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
int numFeatures) |
public String getName()
getName
in interface com.oracle.labs.mlrg.olcut.command.CommandGroup
public String getDescription()
getDescription
in interface com.oracle.labs.mlrg.olcut.command.CommandGroup
public org.jline.reader.Completer[] fileCompleter()
public void startShell()
@Command(usage="<filename> - Load a model from disk.", completers="fileCompleter") public String loadModel(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, File path)
@Command(usage="Does the model generate probabilities") public String generatesProbabilities(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
@Command(usage="Shows the model description") public String modelDescription(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
@Command(usage="Shows the information on a particular feature") public String featureInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, String featureName)
@Command(usage="Shows the output information.") public String outputInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
@Command(usage="<int> - Shows the top N features in the model") public String topFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int numFeatures)
@Command(usage="Shows the number of features in the model") public String numFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
@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)
@Command(usage="Shows the output statistics") public String showLabelStats(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
@Command(usage="Sets the number of samples to use in LIME") public String setNumSamples(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int newNumSamples)
@Command(usage="Explain a text classification") public String explain(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, String[] tokens)
@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)
@Command(usage="Make a prediction") public String predict(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, String[] tokens)
public static void main(String[] args)
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.