| Package | Description |
|---|---|
| org.apache.ignite.ml.knn |
Contains main APIs for kNN algorithms.
|
| org.apache.ignite.ml.knn.classification |
Contains main APIs for kNN classification algorithms.
|
| org.apache.ignite.ml.knn.regression |
Contains helper classes for kNN regression algorithms.
|
| org.apache.ignite.ml.structures |
Contains some internal utility structures.
|
| org.apache.ignite.ml.structures.partition |
Contains internal APIs for dataset partitioned labeled datasets.
|
| org.apache.ignite.ml.structures.preprocessing |
Contains internal APIs for dataset pre-processing.
|
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Dataset<EmptyContext,LabeledDataset<Double,LabeledVector>> |
KNNUtils.buildDataset(DatasetBuilder<K,V> datasetBuilder,
IgniteBiFunction<K,V,double[]> featureExtractor,
IgniteBiFunction<K,V,Double> lbExtractor)
Builds dataset.
|
| Constructor and Description |
|---|
KNNClassificationModel(Dataset<EmptyContext,LabeledDataset<Double,LabeledVector>> dataset)
Builds the model via prepared dataset.
|
| Constructor and Description |
|---|
KNNRegressionModel(Dataset<EmptyContext,LabeledDataset<Double,LabeledVector>> dataset)
Builds the model via prepared dataset.
|
| Modifier and Type | Method and Description |
|---|---|
LabeledDataset |
LabeledDataset.copy()
Makes copy with new Label objects and old features and Metadata objects.
|
LabeledDataset |
LabeledDatasetTestTrainPair.test()
Test subset of the whole dataset.
|
LabeledDataset |
LabeledDatasetTestTrainPair.train()
Train subset of the whole dataset.
|
| Constructor and Description |
|---|
LabeledDatasetTestTrainPair(LabeledDataset dataset,
double testPercentage)
Creates two subsets of given dataset.
|
| Modifier and Type | Method and Description |
|---|---|
LabeledDataset<Double,LabeledVector> |
LabeledDatasetPartitionDataBuilderOnHeap.build(Iterator<UpstreamEntry<K,V>> upstreamData,
long upstreamDataSize,
C ctx)
Builds a new partition
data from a partition upstream data and partition context |
| Modifier and Type | Method and Description |
|---|---|
static LabeledDataset |
LabeledDatasetLoader.loadFromTxtFile(Path pathToFile,
String separator,
boolean isDistributed,
boolean isFallOnBadData)
Datafile should keep class labels in the first column.
|
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018