Database Reference
In-Depth Information
classifiers.functions.SimpleLinearRegression
classifiers.meta.AdaBoostM1
classifiers.trees.RandomForest
clusterers.EM
filters.unsupervised.attribute.Normalize
As you can see, Weka offers a whole range of classes and functionality.
Adding tab completion
At this moment, you still need to type in the entire class name yourself. You can add
so-called tab completion by adding the following snippet to your ~/.bashrc file after
you export WEKAPATH :
_completeweka () {
local curw = ${ COMP_WORDS [COMP_CWORD] }
local wordlist = $( cat $WEKAPATH /weka.classes )
COMPREPLY =( $( compgen -W '${wordlist[@]}' -- "$curw" ) )
return 0
}
complete -o nospace -F _completeweka weka
This function makes use of the weka.classes file we generated earlier. If you now type
weka clu on the command line and press <Tab> three times, you're presented with a
list of all classes that have to do with clustering:
$ weka clusterers.
clusterers.CheckClusterer
clusterers.CLOPE
clusterers.ClusterEvaluation
clusterers.Cobweb
clusterers.DBSCAN
clusterers.EM
clusterers.FarthestFirst
clusterers.FilteredClusterer
clusterers.forOPTICSAndDBScan.OPTICS_GUI.OPTICS_Visualizer
clusterers.HierarchicalClusterer
clusterers.MakeDensityBasedClusterer
clusterers.OPTICS
clusterers.sIB
clusterers.SimpleKMeans
clusterers.XMeans
Creating a command-line tool weka , determining the usable classes, and adding tab
completion makes sure that Weka is a little bit easier to use at the command line.
Search WWH ::




Custom Search