Package org.apache.spark.ml.clustering
Interface BisectingKMeansParams
- All Superinterfaces:
HasDistanceMeasure
,HasFeaturesCol
,HasMaxIter
,HasPredictionCol
,HasSeed
,HasWeightCol
,Identifiable
,Params
,Serializable
- All Known Implementing Classes:
BisectingKMeans
,BisectingKMeansModel
public interface BisectingKMeansParams
extends Params, HasMaxIter, HasFeaturesCol, HasSeed, HasPredictionCol, HasDistanceMeasure, HasWeightCol
Common params for BisectingKMeans and BisectingKMeansModel
-
Method Summary
Modifier and TypeMethodDescriptionint
getK()
double
k()
The desired number of leaf clusters.The minimum number of points (if greater than or equal to 1.0) or the minimum proportion of points (if less than 1.0) of a divisible cluster (default: 1.0).validateAndTransformSchema
(StructType schema) Validates and transforms the input schema.Methods inherited from interface org.apache.spark.ml.param.shared.HasDistanceMeasure
distanceMeasure, getDistanceMeasure
Methods inherited from interface org.apache.spark.ml.param.shared.HasFeaturesCol
featuresCol, getFeaturesCol
Methods inherited from interface org.apache.spark.ml.param.shared.HasMaxIter
getMaxIter, maxIter
Methods inherited from interface org.apache.spark.ml.param.shared.HasPredictionCol
getPredictionCol, predictionCol
Methods inherited from interface org.apache.spark.ml.param.shared.HasWeightCol
getWeightCol, weightCol
Methods inherited from interface org.apache.spark.ml.util.Identifiable
toString, uid
Methods inherited from interface org.apache.spark.ml.param.Params
clear, copy, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
-
Method Details
-
getK
int getK() -
getMinDivisibleClusterSize
double getMinDivisibleClusterSize() -
k
IntParam k()The desired number of leaf clusters. Must be > 1. Default: 4. The actual number could be smaller if there are no divisible leaf clusters.- Returns:
- (undocumented)
-
minDivisibleClusterSize
DoubleParam minDivisibleClusterSize()The minimum number of points (if greater than or equal to 1.0) or the minimum proportion of points (if less than 1.0) of a divisible cluster (default: 1.0).- Returns:
- (undocumented)
-
validateAndTransformSchema
Validates and transforms the input schema.- Parameters:
schema
- input schema- Returns:
- output schema
-