The content of this page has not been vetted since shifting away from MediaWiki. If you’d like to help, check out the how to help guide!
Introduction
From version 3.7.2, Weka has a package manager (understanding package not in the java sense but as a bundle of additional functionality, separate from that supplied in the main weka.jar file). Many learning algorithms and tools that were present in earlier versions of Weka have become separate packages from version 3.7.2 and need to be installed via the package manager.
In this tutorial we describe step by step how to add new classifiers to the Trainable Weka Segmentation plugin using the Weka package manager.
Calling the package manager
We assume you are familiar with the Trainable Weka Segmentation plugin and know why and how to use it, otherwise, please go back to a more basic tutorial.
To get started, from the main plugin GUI click on the Weka button (on the bottom left corner of the window):
This will launch the Weka GUI Chooser and, if it is the first time, a warning dialog will be displayed to warn you about the package manager:
We can just click OK, go the Weka GUI Chooser window and look for the package manager under the menu Tools › Package manager, or by pressing ⌃ Ctrl + U:
This will open the Weka Package Manager window:
Adding a new classifier
Once the package manager is open, we can select any “package” from the displayed list to install it or to remove it from our working Weka toolbox.
In this tutorial we show how to install a new classifier, in particular the ClassificationViaClustering classifier. For that reason, we scroll down until we find the packaged called “classificationViaClustering” and click on “/downloads”:
A confirmation dialog will pop up:
We click on “Yes” and another dialog will pop up to warn us about closing any active Weka application window that we might have open:
We click OK and the package will be installed. If everything goes right, the package should be listed with a “Yes” in the “Loaded” column:
This means the ClassificationViaClustering classifier is now installed and ready to use. We can check it out by going to the settings dialog of the Trainable Weka Segmentation plugin and confirming the classifier is now listed: