public class ANNModelFormat extends KNNModelFormat
ANNClassificationModel,
Serialized FormdistanceMeasure, k, weighted| Constructor and Description |
|---|
ANNModelFormat(int k,
DistanceMeasure distanceMeasure,
boolean weighted,
LabeledVectorSet<LabeledVector> candidates,
ANNClassificationTrainer.CentroidStat candidatesStat)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LabeledVectorSet<LabeledVector> |
getCandidates() |
int |
hashCode() |
getDistanceMeasure, getK, isWeightedpublic ANNModelFormat(int k,
DistanceMeasure distanceMeasure,
boolean weighted,
LabeledVectorSet<LabeledVector> candidates,
ANNClassificationTrainer.CentroidStat candidatesStat)
k - Amount of nearest neighbors.distanceMeasure - Distance measure.weighted - Weighted or not.candidatesStat - The stat about candidates.public LabeledVectorSet<LabeledVector> getCandidates()
public int hashCode()
hashCode in class KNNModelFormatpublic boolean equals(Object obj)
equals in class KNNModelFormat
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025