public class ModelExplorer extends Object implements com.oracle.labs.mlrg.olcut.command.CommandGroup
Modifier and Type | Class and Description |
---|---|
static class |
ModelExplorer.ModelExplorerOptions
CLI options for
ModelExplorer . |
Modifier and Type | Field and Description |
---|---|
protected com.oracle.labs.mlrg.olcut.command.CommandInterpreter |
shell
The command shell instance.
|
Constructor and Description |
---|
ModelExplorer()
Builds a new model explorer shell.
|
Modifier and Type | Method and Description |
---|---|
String |
featureInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
String featureName)
Shows a specific feature's information.
|
org.jline.reader.Completer[] |
fileCompleter()
Completers for files.
|
String |
generatesProbabilities(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
Checks if the model generates probabilities.
|
String |
getDescription() |
String |
getName() |
String |
loadModel(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
File path)
Loads a model.
|
static void |
main(String[] args)
Entry point.
|
String |
minCount(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
int minCount)
Shows the number of features which occurred more than min count times.
|
String |
modelProvenance(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
Displays the model provenance.
|
String |
numFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
Displays the number of features.
|
String |
outputInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
Displays the output info.
|
void |
startShell()
Start the command shell
|
String |
topFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci,
int numFeatures)
Displays the top n features.
|
protected com.oracle.labs.mlrg.olcut.command.CommandInterpreter shell
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)
ci
- The shell instance.path
- The path to load.@Command(usage="Does the model generate probabilities") public String generatesProbabilities(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
ci
- The command shell.@Command(usage="Shows the model provenance") public String modelProvenance(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
ci
- The command shell.@Command(usage="Shows the information on a particular feature") public String featureInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, String featureName)
ci
- The command shell.featureName
- The feature name.@Command(usage="Shows the output information.") public String outputInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
ci
- The command shell.@Command(usage="<int> - Shows the top N features in the model") public String topFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int numFeatures)
ci
- The command shellnumFeatures
- The number of features to display.@Command(usage="Shows the number of features in the model") public String numFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
ci
- The command shell.@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)
ci
- The command shell.minCount
- The minimum occurrence count.public static void main(String[] args)
args
- CLI args.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.