D
- The type of data which the internal clusterer can cluster lists ofT
- The type of results thepublic class ClusterEvaluator<D,T extends AnalysisResult> extends Object implements Evaluator<int[][],T>
Constructor and Description |
---|
ClusterEvaluator(Clusterer<D> gen,
D data,
Function<B,Integer> indexFunc,
Map<A,? extends List<B>> dataset,
ClusterAnalyser<T> analyser) |
ClusterEvaluator(Clusterer<D> gen,
D data,
int[][] clusters,
ClusterAnalyser<T> analyser) |
ClusterEvaluator(Clusterer<D> gen,
D data,
Map<A,? extends List<B>> dataset,
ClusterAnalyser<T> analyser) |
ClusterEvaluator(Clusterer<D> gen,
Map<A,? extends List<B>> dataset,
Function<List<B>,D> transform,
ClusterAnalyser<T> analyser) |
Modifier and Type | Method and Description |
---|---|
T |
analyse(int[][] estimated)
Analyse the raw data produced by a call to
Evaluator.evaluate() and return the analysed data. |
int[][] |
evaluate()
Run, or evaluate the system, returning the raw data.
|
public ClusterEvaluator(Clusterer<D> gen, D data, int[][] clusters, ClusterAnalyser<T> analyser)
gen
- data
- clusters
- analyser
- public ClusterEvaluator(Clusterer<D> gen, D data, Map<A,? extends List<B>> dataset, ClusterAnalyser<T> analyser)
gen
- data
- dataset
- extract the elements of this map "in order" and build a ground truth. very dangerous.analyser
- public ClusterEvaluator(Clusterer<D> gen, D data, Function<B,Integer> indexFunc, Map<A,? extends List<B>> dataset, ClusterAnalyser<T> analyser)
gen
- data
- indexFunc
- given a data instance, return its indexdataset
- analyser
- public ClusterEvaluator(Clusterer<D> gen, Map<A,? extends List<B>> dataset, Function<List<B>,D> transform, ClusterAnalyser<T> analyser)
gen
- dataset
- transform
- turn a list of dataset items into the required type for clusteringanalyser
- public int[][] evaluate()
Evaluator
evaluate
in interface Evaluator<int[][],T extends AnalysisResult>
public T analyse(int[][] estimated)
Evaluator
Evaluator.evaluate()
and return the analysed data.analyse
in interface Evaluator<int[][],T extends AnalysisResult>
estimated
- the raw data.