public class ANNModelFormat extends KNNModelFormat
ANNClassificationModel
,
Serialized FormdistanceMeasure, k, weighted
Constructor and Description |
---|
ANNModelFormat(int k,
DistanceMeasure measure,
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 measure, boolean weighted, LabeledVectorSet<LabeledVector> candidates, ANNClassificationTrainer.CentroidStat candidatesStat)
k
- Amount of nearest neighbors.measure
- 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
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021