C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

List of all members
Parameter Struct Reference

Base classes parameters for computing initial centroids for K-Means algorithm. More...

Class Declaration

struct DAAL_EXPORT Parameter : public daal::algorithms::Parameter
{
Parameter(size_t _nClusters, size_t _offset = 0, size_t _seed = 777777);
Parameter(const Parameter &other);
size_t nClusters;
size_t nRowsTotal;
size_t offset;
size_t seed;
size_t nRounds;
engines::EnginePtr engine;
services::Status check() const DAAL_C11_OVERRIDE;
};

Constructor & Destructor Documentation

Parameter ( size_t  _nClusters,
size_t  _offset = 0,
size_t  _seed = 777777 
)

Parameter constructor

Parameters
[in]_nClustersNumber of clusters
[in]_offsetOffset in the total data set specifying the start of a block stored on a given local node
[in]_seedSeed for generating random numbers for the initialization
Deprecated:
This item will be removed in a future release. Use engine instead.
Parameter ( const Parameter other)

Constructs parameters of the algorithm that computes initial centroids for K-Means algorithm by copying another parameters object

Parameters
[in]otherParameters of K-Means algorithm

Member Data Documentation

engines::EnginePtr engine

Engine to be used for generating random numbers for the initialization

size_t nClusters

Number of clusters

size_t nRounds

Kmeans|| only. Number of rounds for k-means||. (oversamplingFactor*nRounds) > 1 is a requirement.

size_t nRowsTotal

Total number of rows in the data set

size_t offset

Offset in the total data set specifying the start of a block stored on a given local node

double oversamplingFactor

Kmeans|| only. A fraction of nClusters being chosen in each of nRounds of kmeans||.\ L = nClusters* oversamplingFactor points are sampled in a round.

size_t seed

Seed for generating random numbers for the initialization

Deprecated:
This item will be removed in a future release. Use engine instead.

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

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