Tutorial by Examples

ARFF files (Attribute-Relation File Format) are the most common format for data used in Weka. Each ARFF file must have a header describing what each data instance should be like. The attributes that can be used are as follows: Numeric Real or integer numbers. Nominal Nominal attributes m...
Depending on the version of Weka being used different methods for loading ARFF files should be utilised. Weka <3.5.5 The following sample code shows how to load an ARFF file: import weka.core.Instances; import java.io.BufferedReader; import java.io.FileReader; ... BufferedReader reader = n...
Many databases can be used in Weka. Firstly, the DatabaseUtils.props file must be edited to match your database; specifically you must provide your database's name, location, port and correct driver. jdbcDriver=org.gjt.mm.mysql.Driver jdbcURL=jdbc:mysql://localhost:3306/my_database Then the dat...

Page 1 of 1