public class KNN
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.ai_heuristic.eval.metric.MetricDataset |
knnDataset
Training datasets
|
protected org.ai_heuristic.algo.cluster.NearestNeighbour |
nn
The nearest neighbour algorithm to run.
|
Constructor and Description |
---|
KNN()
Create a new instance of KNN.
|
Modifier and Type | Method and Description |
---|---|
void |
initialiseKnn(KnnConfig knnConfig)
Initialise the knn.
|
ClusterResult |
runTest()
Run the knn algorithm test.
|
protected org.ai_heuristic.algo.cluster.NearestNeighbour nn
protected org.ai_heuristic.eval.metric.MetricDataset knnDataset
public void initialiseKnn(KnnConfig knnConfig) throws java.lang.Exception
knnConfig
- the configuration setup.java.lang.Exception
- any error.public ClusterResult runTest() throws java.lang.Exception
java.lang.Exception
- any error.