public final class ANNClassificationModel extends NNClassificationModel
distanceMeasure, k, weighted| Constructor and Description |
|---|
ANNClassificationModel(LabeledVectorSet<LabeledVector> centers,
ANNClassificationTrainer.CentroidStat centroindsStat)
Build the model based on a candidates set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LabeledVectorSet<LabeledVector> |
getCandidates() |
ANNClassificationTrainer.CentroidStat |
getCentroindsStat() |
int |
hashCode() |
Double |
predict(Vector v)
Make a prediction for the specified input arguments.
|
<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, getDependencies, getDistanceMeasure, getDistances, getKClosestVectors, putDistanceIdxPair, withDistanceMeasure, withK, withWeightedpublic ANNClassificationModel(LabeledVectorSet<LabeledVector> centers, ANNClassificationTrainer.CentroidStat centroindsStat)
centers - The candidates set.centroindsStat - The stat about centroids.public LabeledVectorSet<LabeledVector> getCandidates()
public ANNClassificationTrainer.CentroidStat getCentroindsStat()
public Double predict(Vector v)
v - Input arguments.public <P> void saveModel(Exporter<KNNModelFormat,P> exporter, P path)
NNClassificationModelsaveModel in interface Exportable<KNNModelFormat>saveModel in class NNClassificationModelexporter - Exporter.path - Path to saved model.public int hashCode()
hashCode in class NNClassificationModelpublic boolean equals(Object obj)
equals in class NNClassificationModelpublic String toString()
toString in class NNClassificationModelpublic String toString(boolean pretty)
toString in interface IgniteModel<Vector,Double>toString in class NNClassificationModelpretty - Use pretty mode.
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025