Explorer
pro:
cos: can't save the process;
Experimenter
pro:
KnowledgeFlow
pro:
cos:
simpleCLI
pro: run similar tasks of what Explorer does using command line
cos: it can't access all functionalities of Weka API, Jython or Groovy scripting is recommended for this task.
Workbench
pro: it gathers all other interfaces together into one place
simpleCLI
go to simpleCLI, enter the following code
java weka.classifiers.rules.ZeroR -t path/to/a-file-of-dataset
Jython Example
codes from Advanced Weka MOOC course lesson 5.1
# imports
import weka.core.converters.ConverterUtils.DataSource as DS
import weka.filters.Filter as Filter
import weka.filters.unsupervised.attribute.Remove as Remove
import os
# load data
data = DS.read(os.environ.get("MOOC_DATA") + os.sep + "iris.arff")
# remove class attribute
rem = Remove()
rem.setOptions(["-R", "last"])
rem.setInputFormat(data)
dataNew = Filter.useFilter(data, rem)
# output filtered dataset
print(dataNew)