public class KnnConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
bucketSize
Size of tree container bucket
|
java.lang.String |
dataType
Data type
|
int |
iterations
Maximum number of training iterations
|
int |
k
Number of nearest neighbours
|
org.ai_heuristic.data.LearningDataModel |
knnData
The data to train the neural network with
|
java.lang.String |
metric
Evaluation Metric
|
Constructor and Description |
---|
KnnConfig()
Create a new instance of KnnConfig
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Copy the values of this config and return.
|
org.ai_heuristic.eval.metric.MetricDataset |
dataToDataset()
Convert the stored data points, of type Double, into a
MetricDataset and return. |
public int iterations
public int k
public int bucketSize
public java.lang.String dataType
public java.lang.String metric
public org.ai_heuristic.data.LearningDataModel knnData
public org.ai_heuristic.eval.metric.MetricDataset dataToDataset() throws java.lang.Exception
MetricDataset
and return.java.lang.Exception
- any error.public java.lang.Object clone()
clone
in class java.lang.Object