Interfacing with Weka

In this chapter, we will be working with datasets. The general format of a dataset is a comma-separated value (CSV) file, and Weka works with a special kind of format, known as an Attribute-Relation File Format (ARFF) file. We will look at how to convert a CSV file to an ARFF file, and vice versa.

In this chapter, we will cover the following topics:

  • A brief introduction to Weka
  • Installing and interfacing with Weka
  • Reading and writing datasets
  • Converting datasets

First, let's look at an introduction to Weka.

Get Hands-On Artificial Intelligence with Java for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.