|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectace.Trainer
public class Trainer
Trains a Weka Classifier based on a set of Weka training Instances.
| Constructor Summary | |
|---|---|
Trainer()
|
|
| Method Summary | |
|---|---|
static void |
saveInstancesAsARFF(weka.core.Instances instances,
java.lang.String file_path)
Saves the given Weka Instances as an arff file with the given path. |
static void |
train(weka.core.Instances instances,
TrainedModel trained)
Trains the Weka Classifier contained in the given TrainedModel object based on the given traning Instances. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Trainer()
| Method Detail |
|---|
public static void train(weka.core.Instances instances,
TrainedModel trained)
throws java.lang.Exception
instances - The Weka Instances to use for training.trained - The serializeable TrainedModel object containing
reference to the Weka object needed
for classification.
java.lang.Exception - If an errror is encountered.
public static void saveInstancesAsARFF(weka.core.Instances instances,
java.lang.String file_path)
throws java.lang.Exception
instances - The Weka Instances to save.file_path - The path of the arff file to save.
java.lang.Exception - Throws an exception if cannot save the given instances.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||