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, isWeighted
public 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 KNNModelFormat
public boolean equals(Object obj)
equals
in class KNNModelFormat
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024