public class KNNModelFormat extends Object implements Serializable
KNNClassificationModel
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected DistanceMeasure |
distanceMeasure
Distance measure.
|
protected int |
k
Amount of nearest neighbors.
|
protected NNStrategy |
stgy
kNN strategy.
|
Constructor and Description |
---|
KNNModelFormat() |
KNNModelFormat(int k,
DistanceMeasure measure,
NNStrategy stgy)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
DistanceMeasure |
getDistanceMeasure()
Gets distance measure.
|
int |
getK()
Gets amount of nearest neighbors.
|
NNStrategy |
getStgy()
Gets kNN strategy.
|
int |
hashCode() |
protected int k
protected DistanceMeasure distanceMeasure
protected NNStrategy stgy
public KNNModelFormat()
public KNNModelFormat(int k, DistanceMeasure measure, NNStrategy stgy)
k
- Amount of nearest neighbors.measure
- Distance measure.stgy
- kNN strategy.public int getK()
public DistanceMeasure getDistanceMeasure()
public NNStrategy getStgy()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019