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 boolean |
weighted
Weighted or not.
|
Constructor and Description |
---|
KNNModelFormat() |
KNNModelFormat(int k,
DistanceMeasure measure,
boolean weighted)
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.
|
int |
hashCode() |
boolean |
isWeighted()
Weighted or not.
|
protected int k
protected DistanceMeasure distanceMeasure
protected boolean weighted
public KNNModelFormat()
public KNNModelFormat(int k, DistanceMeasure measure, boolean weighted)
k
- Amount of nearest neighbors.measure
- Distance measure.weighted
- Weighted or not.public int getK()
public DistanceMeasure getDistanceMeasure()
public boolean isWeighted()
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024