-
Notifications
You must be signed in to change notification settings - Fork 6
module__WekaTrain
#org.bibliome.alvisnlp.modules.weka.WekaTrain
Trains a Weka classifier where examples are elements.
org.bibliome.alvisnlp.modules.weka.WekaTrain builds a Weka training set where examples are elements, trains a classifier and writes it into classifierFile. The training set is specified by examples. Example attributes are specified by relationDefinition.
org.bibliome.alvisnlp.modules.weka.WekaTrain activates cross validation if one of the following parameters is set: evaluationFile, foldFeatureKey, predictedClassFeatureKey.
Optional
Type: String
Classifier algorithm, this must be the canonical name of a class that extends Weka's Classifier.
Optional
Type: File
File where to write the trained classifier serialization.
Optional
Type: Expression
Training set examples. This expression is evaluated as a list of elements with the corpus as the context element.
Optional
Type: RelationDefinition
Specification of example attributes and class.
Optional
Type: TargetStream
File where to write the training set in ARFF format.
Optional
Type: TargetStream
File where to write classifier information and statistics.
Optional
Type: String[]]
Options to the classifier algorithm.
Optional
Type: Integer
Number of segments for cross validation.
Optional
Type: TargetStream
File where to write evaluation results, if cross validation is activated.
Optional
Type: String
Feature where to write the fold number in which the training element was in the test set if cross validation is activated.
Optional
Type: String
Feature where to write the class prediction if cross validation is activated.
Default value: 1
Type: Long
Random seed used by some algorithms and cross validation.