August 2018
Beginner
144 pages
3h 6m
English
Now, we'll look into how to make predictions using our trained model. Consider the following code:
import weka.core.Instances;import weka.core.converters.ConverterUtils.DataSource;import weka.classifiers.collective.functions.LLGC;import weka.classifiers.collective.evaluation.Evaluation;
We will be importing two JAR libraries, as follows:
Therefore, we will take the two base classes, Instances and DataSource, and we will use the LLGC class (since we have trained our model using LLGC) from the collective-classifications package, as well as the Evaluation class from the collective-classifications package.