en:Simple CLI (3.5.1)
From WekaDoc
(Redirected from en:Simple CLI (3.5.2))
Missing image
En-simplecli_main-351.png
En-simplecli_main-351.png
Simple CLI screenshot
The Simple CLI provides full access to all Weka classes, i.e., classifiers, filters, clusterers, etc., but without the hassle of the CLASSPATH (it facilitates the one, with which Weka was started).
It offers a simple Weka shell with separated commandline and output.
[edit]
Commands
The following commands are available in the Simple CLI:
- java <classname> [<args>]
invokes a java class with the given arguments (if any) - break
stops the current thread, e.g., a running classifier, in a friendly manner - kill
stops the current thread in an unfriendly fashion - cls
clears the output area - exit
exits the Simple CLI - help [<command>]
provides an overview of the available commands if without a command name as argument, otherwise more help on the specified command
[edit]
Invocation
In order to invoke a Weka class, one has only to prefix the class with "java". This command tells the Simple CLI to load a class and execute it with any given parameters. E.g., the J48 classifier can be invoked on the iris dataset with the following command:
java weka.classifiers.trees.J48 -t c:/temp/iris.arff
This results in the following output:
Missing image
En-simplecli_j48-351.png
En-simplecli_j48-351.png
J48 on iris dataset
