Package | Description |
---|---|
org.apache.ignite.ml.clustering.kmeans |
Contains kMeans clustering algorithm.
|
org.apache.ignite.ml.knn |
Contains main APIs for kNN algorithms.
|
org.apache.ignite.ml.knn.ann |
Contains main APIs for ANN classification algorithms.
|
org.apache.ignite.ml.knn.utils |
Contains util functionality for kNN algorithms.
|
org.apache.ignite.ml.knn.utils.indices |
Contains utils functionality for indices in kNN algorithms.
|
org.apache.ignite.ml.math.distances |
Contains main APIs for distances.
|
Modifier and Type | Method and Description |
---|---|
DistanceMeasure |
KMeansModel.distanceMeasure()
Distance measure.
|
DistanceMeasure |
KMeansTrainer.getDistance()
Gets the distance.
|
DistanceMeasure |
KMeansModelFormat.getDistance() |
Modifier and Type | Method and Description |
---|---|
KMeansTrainer |
KMeansTrainer.withDistance(DistanceMeasure distance)
Set up the distance.
|
Constructor and Description |
---|
KMeansModel(Vector[] centers,
DistanceMeasure distanceMeasure)
Construct KMeans model with given centers and distanceMeasure measure.
|
KMeansModelFormat(Vector[] centers,
DistanceMeasure distance) |
Modifier and Type | Field and Description |
---|---|
protected DistanceMeasure |
KNNTrainer.distanceMeasure
Distance measure.
|
protected DistanceMeasure |
KNNModel.distanceMeasure
Distance measure.
|
protected DistanceMeasure |
NNClassificationModel.distanceMeasure
Distance measure.
|
Modifier and Type | Method and Description |
---|---|
DistanceMeasure |
NNClassificationModel.getDistanceMeasure() |
Modifier and Type | Method and Description |
---|---|
Self |
KNNTrainer.withDistanceMeasure(DistanceMeasure distanceMeasure)
Sets up
distanceMeasure parameter. |
NNClassificationModel |
NNClassificationModel.withDistanceMeasure(DistanceMeasure distanceMeasure)
Set up parameter of the NN model.
|
Constructor and Description |
---|
KNNModel(Dataset<EmptyContext,SpatialIndex<L>> dataset,
DistanceMeasure distanceMeasure,
int k,
boolean weighted)
Constructs a new instance of KNN model.
|
KNNPartitionDataBuilder(Preprocessor<K,V> preprocessor,
SpatialIndexType spatialIdxType,
DistanceMeasure distanceMeasure)
Constructs a new instance of KNN partition data builder.
|
Modifier and Type | Field and Description |
---|---|
protected DistanceMeasure |
KNNModelFormat.distanceMeasure
Distance measure.
|
Modifier and Type | Method and Description |
---|---|
DistanceMeasure |
ANNClassificationTrainer.getDistance()
Gets the distance.
|
DistanceMeasure |
KNNModelFormat.getDistanceMeasure()
Gets distance measure.
|
Modifier and Type | Method and Description |
---|---|
ANNClassificationTrainer |
ANNClassificationTrainer.withDistance(DistanceMeasure distance)
Set up the distance.
|
Constructor and Description |
---|
ANNModelFormat(int k,
DistanceMeasure distanceMeasure,
boolean weighted,
LabeledVectorSet<LabeledVector> candidates,
ANNClassificationTrainer.CentroidStat candidatesStat)
Creates an instance.
|
KNNModelFormat(int k,
DistanceMeasure measure,
boolean weighted)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
static <L> void |
PointWithDistanceUtil.tryToAddIntoHeap(Queue<PointWithDistance<L>> heap,
int k,
Vector pnt,
List<LabeledVector<L>> dataPnts,
DistanceMeasure distanceMeasure)
Util method that adds data points into heap if they fits (if heap size is less than
k or a distance from
taget point to data point is less than a distance from target point to the most distant data point in heap). |
Constructor and Description |
---|
ArraySpatialIndex(List<LabeledVector<L>> data,
DistanceMeasure distanceMeasure)
Construct a new array spatial index.
|
BallTreeSpatialIndex(List<LabeledVector<L>> data,
DistanceMeasure distanceMeasure)
Constructs a new instance of Ball tree spatial index.
|
KDTreeSpatialIndex(List<LabeledVector<L>> data,
DistanceMeasure distanceMeasure)
Constructs a new instance of KD tree spatial index.
|
Modifier and Type | Class and Description |
---|---|
class |
EuclideanDistance
Calculates the L2 (Euclidean) distance between two points.
|
class |
HammingDistance
Calculates the Hamming distance between two points.
|
class |
ManhattanDistance
Calculates the L1 (sum of abs) distance between two points.
|
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024