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 SummaryModifier and TypeMethodDescriptionintgetK()doublek()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.HasDistanceMeasuredistanceMeasure, getDistanceMeasureMethods inherited from interface org.apache.spark.ml.param.shared.HasFeaturesColfeaturesCol, getFeaturesColMethods inherited from interface org.apache.spark.ml.param.shared.HasMaxItergetMaxIter, maxIterMethods inherited from interface org.apache.spark.ml.param.shared.HasPredictionColgetPredictionCol, predictionColMethods inherited from interface org.apache.spark.ml.param.shared.HasWeightColgetWeightCol, weightColMethods inherited from interface org.apache.spark.ml.util.IdentifiabletoString, uidMethods inherited from interface org.apache.spark.ml.param.Paramsclear, 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- 
getKint getK()
- 
getMinDivisibleClusterSizedouble getMinDivisibleClusterSize()
- 
kIntParam 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)
 
- 
minDivisibleClusterSizeDoubleParam 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)
 
- 
validateAndTransformSchemaValidates and transforms the input schema.- Parameters:
- schema- input schema
- Returns:
- output schema
 
 
-