public static class UnsupervisedBinaryClassification.BinaryClassification
extends java.lang.Object
Constructor and Description |
---|
UnsupervisedBinaryClassification.BinaryClassification(float similarThreshold,
float dissimilarThreshold) |
Modifier and Type | Method and Description |
---|---|
void |
classify(float pairDist,
float matchConfidence)
Binary-classify the passed distance between a pair of objects that match to the passed degree (from 0 (non-matching) to 1 (perfectly matching)).
|
void |
classify(float pairDist,
int cluster1,
int cluster2) |
void |
classify(float pairDist,
short[] clusters1,
short[] clusters2)
Soft-assignement classification.
|
float |
getAdjustedRandIndex(UnsupervisedBinaryClassification.BinaryClassification rndCf) |
double |
getAdjustedRandIndexWithGreyZone(UnsupervisedBinaryClassification.BinaryClassification rndCf) |
long |
getCorrectDecisions() |
double |
getCorrectDecisionsWithGreyZone() |
double |
getFBscore(double beta) |
double |
getFscore() |
double |
getGmeasure()
Fowlkes–Mallows index
|
long |
getIncorrectDecisions() |
double |
getIncorrectDecisionsWithGreyZone() |
double |
getPrecision() |
double |
getRandIndex() |
double |
getRandIndexWithGreyZone() |
double |
getRecall() |
java.lang.String |
toString() |
public UnsupervisedBinaryClassification.BinaryClassification(float similarThreshold, float dissimilarThreshold)
public void classify(float pairDist, int cluster1, int cluster2)
public void classify(float pairDist, short[] clusters1, short[] clusters2)
public void classify(float pairDist, float matchConfidence)
pairDist
- distance between objectsmatchConfidence
- confidence of match for the pair of objectspublic java.lang.String toString()
toString
in class java.lang.Object
public long getCorrectDecisions()
public double getCorrectDecisionsWithGreyZone()
public long getIncorrectDecisions()
public double getIncorrectDecisionsWithGreyZone()
public double getRandIndex()
public double getRandIndexWithGreyZone()
public float getAdjustedRandIndex(UnsupervisedBinaryClassification.BinaryClassification rndCf)
public double getAdjustedRandIndexWithGreyZone(UnsupervisedBinaryClassification.BinaryClassification rndCf)
public double getPrecision()
public double getRecall()
public double getFscore()
public double getFBscore(double beta)
public double getGmeasure()