|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A KMeansSettings object captures the
parameters associated with the k-means
clustering algorithm. It allows a knowledgeable
user to fine tune algorithm parameters. Generally,
not all parameters must be specified, however,
those specified are taken into account by the
underlying data mining system. The value k
is set by invoking
setMaxNumberOfClusters(clusters :
int) method defined in
ClusteringSettings.
AlgorithmSettings,
ClusteringAlgorithmSettings| Method Summary | |
ClusteringDistanceFunction |
getDistanceFunction()
Returns the distance function to be used for training a k-means clustering model. |
int |
getMaxNumberOfIterations()
Returns the maximum number of iterations to train a k-means clustering model. |
double |
getMinErrorTolerance()
Returns the minimum error tolerance to train a k-means clustering model. |
void |
setDistanceFunction(ClusteringDistanceFunction distanceFunction)
Sets the distance function to be used to train a k-means clustering model. |
void |
setMaxNumberOfIterations(int maxIterations)
Sets the maximum number of interations while training a k-means clustering model. |
void |
setMinErrorTolerance(double minErrorTolerance)
Sets the minimum percentual change in error between iterations to consider that the clusters have converged. |
| Methods inherited from interface javax.datamining.base.AlgorithmSettings |
getMiningAlgorithm, verify |
| Method Detail |
public ClusteringDistanceFunction getDistanceFunction()
public int getMaxNumberOfIterations()
public double getMinErrorTolerance()
public void setDistanceFunction(ClusteringDistanceFunction distanceFunction)
distanceFunction - The distance function to be used for training k-means clusters.
public void setMaxNumberOfIterations(int maxIterations)
maxIterations - The maximum number of iterations.
public void setMinErrorTolerance(double minErrorTolerance)
minErrorTolerance - The minimum percentual change in error between iterations.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||