public final class ANNClassificationModel extends NNClassificationModel implements JSONWritable, DeployableObject
Modifier and Type | Class and Description |
---|---|
static class |
ANNClassificationModel.ANNJSONExportModel |
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) |
static ANNClassificationModel |
fromJSON(Path path)
Loads ANNClassificationModel from JSON file.
|
LabeledVectorSet<LabeledVector> |
getCandidates() |
ANNClassificationTrainer.CentroidStat |
getCentroindsStat() |
List<Object> |
getDependencies()
Returns dependencies of this object that can be object with class defined by client side and unknown for server.
|
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.
|
void |
toJSON(Path path) |
String |
toString() |
String |
toString(boolean pretty) |
buildLabeledDatasetOnListOfVectors, copyParametersFrom, getClassVoteForVector, getClassWithMaxVotes, getDistanceMeasure, getDistances, getK, getKClosestVectors, isWeighted, putDistanceIdxPair, withDistanceMeasure, withK, withWeighted
public 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 <P> void saveModel(Exporter<KNNModelFormat,P> exporter, P path)
NNClassificationModel
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
public String toString(boolean pretty)
toString
in interface IgniteModel<Vector,Double>
toString
in class NNClassificationModel
pretty
- Use pretty mode.public List<Object> getDependencies()
getDependencies
in interface DeployableObject
getDependencies
in class NNClassificationModel
public static ANNClassificationModel fromJSON(Path path)
public void toJSON(Path path)
toJSON
in interface JSONWritable
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021