Want to keep learning?

This content is taken from the The University of Waikato's online course, Advanced Data Mining with Weka. Join the course to learn more.

Do it yourself!

To set up Python with Weka you first need to install Python, and then install the python-weka-wrapper library for Python. You will probably need admin access to your computer for this.

You must ensure that your Python and Java versions have the same bitness, i.e. either 32 or 64 bits.

Java underwent dramatic changes under the hood, starting with Java 9. If you experience any issues, use Java 8 with python-weka-wrapper – it’s known to work on all platforms.

  • Download and install Python 3.x (installation is easy on Linux, but can be challenging on Windows and OSX)
  • Download and install the python-weka-wrapper3 library
  • Here are instructions for all this

Data files:

Evaluate a classifier and output summary statistics and a confusion matrix:

Plot the errors made by LinearRegression:

Display multiple ROC curves, one for each class:

Share this article:

This article is from the free online course:

Advanced Data Mining with Weka

The University of Waikato

Get a taste of this course

Find out what this course is like by previewing some of the course steps before you join: