Java* API Reference for Intel® Data Analytics Acceleration Library 2018 Update 2

List of all members
InitParameter Class Reference

Parameters for computing initial clusters for the K-Means method. More...

Class Constructor

◆ InitParameter() [1/2]

InitParameter ( DaalContext  context,
long  nClusters,
long  offset 
)

Constructs a parameter

Parameters
contextContext to manage the parameter for computing initial clusters for the K-Means algorithm
nClustersNumber of clusters
offsetOffset in the total data set specifying the start of a block stored on a given local node

◆ InitParameter() [2/2]

InitParameter ( DaalContext  context,
long  nClusters 
)

Constructs a parameter

Parameters
contextContext to manage the parameter for computing initial clusters for the K-Means algorithm
nClustersNumber of clusters

Detailed Description

Member Function Documentation

◆ getNClusters()

long getNClusters ( )

Retrieves the number of clusters

Returns
Number of clusters

◆ getNRounds()

long getNRounds ( )

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

Returns
Number of rounds

◆ getNRowsTotal()

long getNRowsTotal ( )

Retrieves the total number of rows in the distributed processing mode

Returns
Total number of rows

◆ getOffset()

long getOffset ( )

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

Returns
Offset in the total data set

◆ getOversamplingFactor()

double getOversamplingFactor ( )

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

Returns
Fraction of nClusters

◆ setNClusters()

void setNClusters ( long  nClusters)

Sets the number of clusters

Parameters
nClustersNumber of clusters

◆ setNRounds()

void setNRounds ( long  nRounds)

Kmeans|| only. Sets the number of rounds for k-means||. (L*nRounds) > 1 is a requirement.

Parameters
nRoundsNumber of rounds

◆ setNRowsTotal()

void setNRowsTotal ( long  nRowsTotal)

Sets the total number of rows in the distributed processing mode

Parameters
nRowsTotalTotal number of rows

◆ setOffset()

void setOffset ( long  offset)

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

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

◆ setOversamplingFactor()

void setOversamplingFactor ( double  factor)

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

Parameters
factorFraction of nClusters

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

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