Skip main navigation

Extending Weka with “packages”

Ian Witten explains Weka's "package" system and how to extend its functionality by downloading packages.
Before we begin, you need to learn a little bit more about Weka.

Weka has hundreds of different classifiers and scores of filtering algorithms. To simplify the interface, when you download Weka it comes with a small set of key classifiers and filters, along with a simple mechanism that allows you to add new methods that are stored in separate “packages”.

The Package Manager is accessed from the Tools menu in Weka’s GUI Chooser panel, which appears when you start up Weka:

Invoking the Package Manager

The very first time it is accessed, the Manager downloads information about all available packages. This requires an internet connection.

Here is the resulting display:

Main window of the Package Manager

The top half is a scrollable list of packages, beneath which is information about the currently selected package – in this case the userClassifier package.

To install (or uninstall) a package, click the install (or uninstall) button near the top of the window. When you do this, you will be asked to close any Weka application windows – like the Explorer. But first wait for the package to finish installing (look at the progress bar). When you reopen the Explorer, the new package will be incorporated.

You can display all packages, or just the ones that are installed, or just the ones that are not installed. The list gives the package name, the broad category it belongs to, the version currently installed (if any), and the most recent version. It can be sorted, in ascending or descending order, by clicking the package or the category column header.

For successful operation the Package Manager requires Weka version 3.8.1 or later. If yours predates this you should install the latest version.

Why not install the userClassifier package now? You’ll be needing it very soon.

This article is from the free online

Data Mining with Weka

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now