@Beta public abstract class TreeKernelSvmBooleanOutcomeDataWriter extends DataWriter_ImplBase<TreeKernelSvmBooleanOutcomeClassifierBuilder<TreeKernelSvmBooleanOutcomeClassifier>,TreeFeatureVector,Boolean,Boolean>
trainingDataFile, trainingDataWriter
classifierBuilder, outputDirectory
Constructor and Description |
---|
TreeKernelSvmBooleanOutcomeDataWriter(File outputDirectory) |
Modifier and Type | Method and Description |
---|---|
static String |
createString(TreeFeatureVector features)
creates and formats a string (without the outcome) for a specific feature vector.
|
void |
writeEncoded(TreeFeatureVector features,
Boolean outcome)
Write a line representing the feature vector with the appropriate outcome to be used by the
tk_svm_classify command.
|
write
finish, setFeaturesEncoder, setOutcomeEncoder
getClassifierBuilder, newClassifierBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish
public TreeKernelSvmBooleanOutcomeDataWriter(File outputDirectory) throws FileNotFoundException
FileNotFoundException
public static String createString(TreeFeatureVector features) throws CleartkProcessingException
features
- The features to write into a string format.CleartkProcessingException
public void writeEncoded(TreeFeatureVector features, Boolean outcome) throws CleartkProcessingException
writeEncoded
in class DataWriter_ImplBase<TreeKernelSvmBooleanOutcomeClassifierBuilder<TreeKernelSvmBooleanOutcomeClassifier>,TreeFeatureVector,Boolean,Boolean>
features
- The feature vector to be written.outcome
- The correct classification for that feature vector.CleartkProcessingException
Copyright © 2014. All rights reserved.