Parameters for computing initial clusters for the K-Means method.
More...
◆ InitParameter() [1/2]
Constructs a parameter
- Parameters
-
context | Context to manage the parameter for computing initial clusters for the K-Means algorithm |
nClusters | Number of clusters |
offset | Offset in the total data set specifying the start of a block stored on a given local node |
◆ InitParameter() [2/2]
Constructs a parameter
- Parameters
-
context | Context to manage the parameter for computing initial clusters for the K-Means algorithm |
nClusters | Number of clusters |
◆ getNClusters()
Retrieves the number of clusters
- Returns
- Number of clusters
◆ getNRounds()
Kmeans|| only. Retrieves the number of rounds for k-means||. (oversamplingFactor*nRounds) > 1 is a requirement.
- Returns
- Number of rounds
◆ getNRowsTotal()
Retrieves the total number of rows in the distributed processing mode
- Returns
- Total number of rows
◆ 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
-
nClusters | Number of clusters |
◆ setNRounds()
void setNRounds |
( |
long |
nRounds | ) |
|
Kmeans|| only. Sets the number of rounds for k-means||. (L*nRounds) > 1 is a requirement.
- Parameters
-
◆ setNRowsTotal()
void setNRowsTotal |
( |
long |
nRowsTotal | ) |
|
Sets the total number of rows in the distributed processing mode
- Parameters
-
nRowsTotal | Total 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
-
offset | Offset 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
-
factor | Fraction of nClusters |
The documentation for this class was generated from the following file:
- kmeans/init/InitParameter.java