Class RandomEvaluator
- java.lang.Object
-
- cc.mallet.cluster.neighbor_evaluator.RandomEvaluator
-
- All Implemented Interfaces:
NeighborEvaluator,java.io.Serializable
public class RandomEvaluator extends java.lang.Object implements NeighborEvaluator, java.io.Serializable
Randomly scoresNeighbors.- Since:
- 1.0
- Version:
- 1.0
- Author:
- "Aron Culotta"
- See Also:
NeighborEvaluator, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RandomEvaluator(Randoms random)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleevaluate(Neighbor neighbor)double[]evaluate(Neighbor[] neighbors)voidreset()Reset the state of the evaluator.
-
-
-
Constructor Detail
-
RandomEvaluator
public RandomEvaluator(Randoms random)
-
-
Method Detail
-
evaluate
public double evaluate(Neighbor neighbor)
- Specified by:
evaluatein interfaceNeighborEvaluator- Parameters:
neighbor-- Returns:
- A higher score indicates that the modified Clustering is preferred.
-
evaluate
public double[] evaluate(Neighbor[] neighbors)
- Specified by:
evaluatein interfaceNeighborEvaluator- Parameters:
neighbors-- Returns:
- One score per neighbor. A higher score indicates that the modified Clustering is preferred.
-
reset
public void reset()
Reset the state of the evaluator.- Specified by:
resetin interfaceNeighborEvaluator
-
-