public class ANNClassificationModel extends NNClassificationModel
distanceMeasure, k, stgy
Constructor and Description |
---|
ANNClassificationModel(LabeledVectorSet<ProbableLabel,LabeledVector> centers,
ANNClassificationTrainer.CentroidStat centroindsStat)
Build the model based on a candidates set.
|
Modifier and Type | Method and Description |
---|---|
Double |
apply(Vector v) |
boolean |
equals(Object obj) |
LabeledVectorSet<ProbableLabel,LabeledVector> |
getCandidates() |
ANNClassificationTrainer.CentroidStat |
getCentroindsStat() |
int |
hashCode() |
<P> void |
saveModel(Exporter<KNNModelFormat,P> exporter,
P path)
Save model by the given path.
|
String |
toString() |
String |
toString(boolean pretty) |
buildLabeledDatasetOnListOfVectors, copyParametersFrom, getClassVoteForVector, getClassWithMaxVotes, getDistanceMeasure, getDistances, getKClosestVectors, putDistanceIdxPair, withDistanceMeasure, withK, withStrategy
public ANNClassificationModel(LabeledVectorSet<ProbableLabel,LabeledVector> centers, ANNClassificationTrainer.CentroidStat centroindsStat)
centers
- The candidates set.centroindsStat
- The stat about centroids.public LabeledVectorSet<ProbableLabel,LabeledVector> getCandidates()
public ANNClassificationTrainer.CentroidStat getCentroindsStat()
public <P> void saveModel(Exporter<KNNModelFormat,P> exporter, P path)
Exportable
saveModel
in interface Exportable<KNNModelFormat>
saveModel
in class NNClassificationModel
exporter
- Exporter.path
- Path to saved model.public int hashCode()
hashCode
in class NNClassificationModel
public boolean equals(Object obj)
equals
in class NNClassificationModel
public String toString()
toString
in class NNClassificationModel
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019