Package org.apache.spark.ml.param.shared
Interface HasDistanceMeasure
- All Superinterfaces:
Identifiable
,Params
,Serializable
- All Known Subinterfaces:
BisectingKMeansParams
,KMeansParams
- All Known Implementing Classes:
BisectingKMeans
,BisectingKMeansModel
,KMeans
,KMeansModel
Trait for shared param distanceMeasure (default: "euclidean"). This trait may be changed or
removed between minor versions.
-
Method Summary
Modifier and TypeMethodDescriptionParam for The distance measure.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
-
distanceMeasure
Param for The distance measure. Supported options: 'euclidean' and 'cosine'.- Returns:
- (undocumented)
-
getDistanceMeasure
String getDistanceMeasure()
-