What is Weka?
Weka is tried and tested open source machine learning software that can be accessed through a graphical user interface, standard terminal applications, or a Java API. It is widely used for teaching, research, and industrial applications, contains a plethora of built-in tools for standard machine learning tasks, and additionally gives transparent access to well-known toolboxes such as scikit-learn, R, and Deeplearning4j.

Features
  • machine learning
  • data mining
  • preprocessing
  • classification
  • regression
  • clustering
  • association rules
  • attribute selection
  • experiments
  • workflow
  • visualization

System requirements
  • Version 1.6.0 (tested with version 1.6.0ga5)


Weka on an eComStation machine with Open JDK


Installing Weka
Download weka-3-7-13.zip. This is the last version which works with Java 6. Next version needs a higher version of Java. In the download is also a manual. Open de zip file and copy the subdirectory/map with the name "weka-3-7-13" to the drive of choice. That's it!

The used cmd file
Weka works with Open JDK in OS/2-eCS. I have a "weka.cmd" file with the following contents;
@echo off
SET BEGINLIBPATH=[drive: java]\JAVA160ga5\bin
SET path=[drive: java]\JAVA160ga5\bin
[drive: weka]
cd [drive: weka]\weka-3-7-13
java -Duser.home=[drive: weka]\weka-3-7-13 -jar weka.jar 2>weka-3713-bugs.txt
I use 2 separate folders (directories), one for Java and one for Weka with the files created by this program. The references used in the cmd file;

  • [drive: java] = drive with Java
  • [drive: weka] = drive with Weka

should be replaced with real drive letters. Save the file and name it "weka.cmd" or use the file from the distribution. This file is copied to the "weka-3-7-13" directory/map. Furthermore, different paths?, adjust according to your needs.
Create a new program object. Specify the path and file name: "[drive: weka]\weka-3-7-13\weka.cmd". In the tabpage Session check the boxes "OS/2 window", "Running as an icon" and "Close Window to end program". In the tabpage General you can enter the name "Weka". I have added an OS/2 icon in the distribution.

Parameters / options explained
  • The statement "-Duser.home=[drive: weka]\weka-3-7-13" will ensure that Weka will save all necessary files in own directory instead of saving them in the home directory.
  • The addition "2>weka-3713-bugs.txt" ensures that errors are saved in the file "weka-3713-bugs.txt". The 2 in "2>" is not a typo! The file stays empty!

Download
In the file you can find the above command file (all drive letters are on set to C:) and an OS/2 Weka icon: weka-ecs.zip.

revision Februari 16, 2020