|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object leila.classifiers.Classifier
public abstract class Classifier
This class is part of LEILA (http://mpii.de/yago-naga/leila). It is licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0) by the author Fabian M. Suchanek (http://suchanek.name).
Classifier.java represents a Classifier for a set of FeatureObjects. Predefined Classifiers are KNNClassifier and SVMClassifier.
Field Summary | |
---|---|
java.util.Map<Bridge,StoredBridge> |
bridgeMap
Maps all distinct bridges to their StoredBridge |
protected boolean |
isContracted
Tells whether contract() has been called |
protected int |
numFeatureObjects
Contains number of featureObjects |
Constructor Summary | |
---|---|
Classifier()
|
Method Summary | |
---|---|
abstract void |
add(LinkagePattern o)
Adds a new LinkagePattern |
abstract double |
classify(LinkagePattern o)
Tells whether the classifier classifies a LinkagePattern as positive |
void |
print()
Prints this classifier to System.out |
abstract void |
printTo(java.io.Writer o)
Prints this classifier |
java.lang.String |
toString()
Returns the list of featureObjects, might be long, so use printTo instead! |
abstract void |
train()
Trains the classifier on all added FeatureObjects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean isContracted
protected int numFeatureObjects
public java.util.Map<Bridge,StoredBridge> bridgeMap
Constructor Detail |
---|
public Classifier()
Method Detail |
---|
public abstract void add(LinkagePattern o) throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void printTo(java.io.Writer o) throws java.lang.Exception
java.lang.Exception
public void print() throws java.lang.Exception
java.lang.Exception
public abstract double classify(LinkagePattern o) throws java.lang.Exception
java.lang.Exception
public abstract void train() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |