The Command-line Interface
IntroductionOne can use the command line interface of Weka either through a command prompt or through the SimpleCLI modeFor example to fire up Weka and run J48 on a ARFF file present in the current working directory, the command is:java weka.classifiers.trees.J48 -t weather.arffWeka consists of a hierarchical package system. For example here J48 program is part of the treespackage which further resides in the classifier package. Finally the wekapackage contains the classifiers package
Introduction
Structure of WekaEach time the Java virtual machine executes J48, it creates an instance of this class by allocating memory for building and storing a decision tree classifierThe structure of Weka can also be studied from the online Javadoc of Weka
Command line optionsThe -t option was used in the command line to communicate the name of the training file to the learning algorithmIf you invoke a scheme without any command-line options at all, it displays the applicable options: first the general options, then the scheme-specific ones
Command line optionsGeneral options
Command line optionsScheme-specific options
Visit more self help tutorialsPick a tutorial of your choice and browse through it at your own pace.The tutorials section is free, self-guiding and will not involve any additional support.Visit us at www.dataminingtools.net

WEKA: The Command Line Interface

  • 1.
  • 2.
    IntroductionOne can usethe command line interface of Weka either through a command prompt or through the SimpleCLI modeFor example to fire up Weka and run J48 on a ARFF file present in the current working directory, the command is:java weka.classifiers.trees.J48 -t weather.arffWeka consists of a hierarchical package system. For example here J48 program is part of the treespackage which further resides in the classifier package. Finally the wekapackage contains the classifiers package
  • 3.
  • 4.
    Structure of WekaEachtime the Java virtual machine executes J48, it creates an instance of this class by allocating memory for building and storing a decision tree classifierThe structure of Weka can also be studied from the online Javadoc of Weka
  • 5.
    Command line optionsThe-t option was used in the command line to communicate the name of the training file to the learning algorithmIf you invoke a scheme without any command-line options at all, it displays the applicable options: first the general options, then the scheme-specific ones
  • 6.
  • 7.
  • 8.
    Visit more selfhelp tutorialsPick a tutorial of your choice and browse through it at your own pace.The tutorials section is free, self-guiding and will not involve any additional support.Visit us at www.dataminingtools.net