cc.mallet.cluster.neighbor_evaluator
Interface NeighborEvaluator
-
- All Known Implementing Classes:
- ClassifyingNeighborEvaluator, MedoidEvaluator, PairwiseEvaluator, RandomEvaluator, RankingNeighborEvaluator
public interface NeighborEvaluatorScores the value of changing the currentClusteringto the modifiedClusteringspecified in aNeighborobject. A common implementation of this interface uses aClassifierto assign a score to aNeighbor.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description doubleevaluate(Neighbor neighbor)double[]evaluate(Neighbor[] neighbors)voidreset()Reset the state of the evaluator.
-
-
-
Method Detail
-
evaluate
double evaluate(Neighbor neighbor)
- Parameters:
neighbor-- Returns:
- A higher score indicates that the modified Clustering is preferred.
-
evaluate
double[] evaluate(Neighbor[] neighbors)
- Parameters:
neighbors-- Returns:
- One score per neighbor. A higher score indicates that the modified Clustering is preferred.
-
reset
void reset()
Reset the state of the evaluator.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG