Nowadays, programming languages such as Python and R are undoubtedly some of the most in-demand languages in Data Science and Machine Learning.

But is it also possible to perform common Machine Learning and Data Science tasks without necessarily being proficient in coding?

Of course it is! Weka is a Graphical User Interface-based open-source package. It can be used in order to perform common Data Science tasks just by using the graphical interface.

Basics

Weka can be easily installed on any type of platform by following the instructions at the following link. The only pre-requisite is having Java 8.0 installed on your local machine.

Once you've installed Weka, you will have a set of standard data processing and inference techniques such as:

  • Data Pre-processing: once you've loaded a dataset, Weka enables you to quickly explore its attributes and instances. Additionally, different filtering techniques are available in order to, for example, convert categorical data into numerical or perform feature selection in order to reduce the dimensionality of our dataset (eg. to speed up training times and performance).
  • Classification and Regression Algorithms: a collection of different algorithms such as Gaussian Naive Bayes, Decision Trees, K-Nearest Neighbour, Ensembles techniques, and various linear regression variants.
  • Clustering: this technique can be used in order to identify the main categories in our data in an unsupervised way. Some example algorithms available in the Weka collection are K-Means Clustering and Expectation Maximisation.
  • Discovering Associations: discovering rules in our dataset in order to more easily identify patterns and connections between the different features.
  • Data Visualisation: a suite of integrated data visualisation techniques to quickly visualise correlations between features and represent learned machine learning patterns such as Decision Trees and K-Means Clustering.

Another interesting feature of Weka is the ability to install new packages as they are created.

One example of an additional package you can install is AutoML. AutoML can in fact be particularly useful for beginners who might find it difficult to identify what Machine Learning model might be best to use for a specific task.

Using the Weka AutoML package, you can easily test different Machine Learning models on the fly. It also allows you to auto-tune its hyper-parameters in order to increase performance.

Finally, for more expert users, Weka also offers a command line interface to use Java code. This can be particularly useful especially if you're working with large amounts of data.

Example

We are now going to walk through a simple example in order to demonstrate how to get started with Weka.

First of all, we can start our analysis by opening Weka Explorer and opening our dataset (in this example, the Iris Dataset).

image-153
Figure 1: Importing and Visualising the data

Select the Classify tab, choose Naive Bayes as our classifier, and click start. You'll see that we can quickly achieve 96% classification accuracy without having to write any code!

image-154
Figure 2: Naive Bayes Classification Results

Conclusion

In case you are looking for more information about how to get started with Weka, this YouTube series by Google Developers is a great place to start.

Contact me

If you want to keep updated with my latest articles and projects, follow me on Medium and subscribe to my mailing list. These are some of my contacts details:

Cover photo from this article.