public class VisualClassifier extends Object
| Constructor and Description |
|---|
VisualClassifier(String trainfile,
int classindex)
Creates the classifier and trains it with the given training ARFF file.
|
| Modifier and Type | Method and Description |
|---|---|
String |
classifyArea(org.fit.layout.model.Area area) |
void |
classifyTree(org.fit.layout.model.Area root,
FeatureExtractor features)
Classifies the areas in an area tree.
|
double[] |
distributionForArea(org.fit.layout.model.Area area) |
String |
getClassName(int index) |
public VisualClassifier(String trainfile, int classindex)
trainfile - path to the training ARFF file. Use the res: prefix for denoting
classpath resources (e.g. res:train.arff).classindex - index of the class attribute in the ARFF filepublic void classifyTree(org.fit.layout.model.Area root,
FeatureExtractor features)
root - the root node of the area treepublic String classifyArea(org.fit.layout.model.Area area)
public double[] distributionForArea(org.fit.layout.model.Area area)
public String getClassName(int index)
Copyright © 2016. All rights reserved.