Java* API Reference for Intel® Data Analytics Acceleration Library 2019 Update 4

List of all members

k nearest neighbors algorithm parameters More...

Detailed Description

Member Function Documentation

DataUseInModelId getDataUseInModel ( )

Returns the enable/disable an usage of the input dataset in kNN model flag

Returns
Enable/disable an usage of the input dataset in kNN model flag
long getK ( )

Returns the number of neighbors

Returns
Number of neighbors
int getSeed ( )
Deprecated:
This item will be removed in a future release.

Returns the seed for random choosing elements from training dataset

Returns
Seed for random choosing elements from training dataset
void setDataUseInModel ( DataUseInModelId  flag)

Sets the enable/disable an usage of the input dataset in kNN model flag

Parameters
flagEnable/disable an usage of the input dataset in kNN model flag
void setEngine ( com.intel.daal.algorithms.engines.BatchBase  engine)

Sets the engine to be used by the algorithm

Parameters
engineto be used by the algorithm
void setK ( long  k)

Sets the number of neighbors

Parameters
kNumber of neighbors
void setSeed ( int  seed)
Deprecated:
This item will be removed in a future release.

Sets the seed for random choosing elements from training dataset

Parameters
seedSeed for random choosing elements from training dataset

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.