|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.transform.PositiveScoresTransformClassifier
public class PositiveScoresTransformClassifier
Constructor Summary | |
---|---|
PositiveScoresTransformClassifier(Classifier c,
Dataset data)
|
Method Summary | |
---|---|
double |
calculatePositiveThreshold(Dataset data)
iterate over training data to discover positive threshold. |
ClassLabel |
classification(Instance instance)
Return a predicted type for the span, as a class label. |
java.lang.String |
explain(Instance instance)
Return some string that 'explains' the classification |
Explanation |
getExplanation(Instance instance)
Return an Explanation for the classification |
static void |
main(java.lang.String[] args)
|
double |
score(Instance instance)
Finds the maximum positive axis weigth of hyperplane and calculates minFeatScore based on percentage this value this was never tested! |
double |
score(Instance instance,
double minFeatScore)
Inner product of hyperplane and instance weights, disregarding the negative dimensions of hyperplane. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PositiveScoresTransformClassifier(Classifier c, Dataset data)
Method Detail |
---|
public ClassLabel classification(Instance instance)
Classifier
classification
in interface Classifier
public double calculatePositiveThreshold(Dataset data)
public double score(Instance instance)
public double score(Instance instance, double minFeatScore)
public java.lang.String explain(Instance instance)
Classifier
explain
in interface Classifier
public Explanation getExplanation(Instance instance)
Classifier
getExplanation
in interface Classifier
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |