Package org.apache.spark.ml.param.shared
Interface HasNumFeatures
- All Superinterfaces:
Identifiable
,Params
,Serializable
- All Known Implementing Classes:
FeatureHasher
,HashingTF
Trait for shared param numFeatures (default: 262144). This trait may be changed or
removed between minor versions.
-
Method Summary
Modifier and TypeMethodDescriptionint
Param for Number of features.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
-
getNumFeatures
int getNumFeatures() -
numFeatures
IntParam numFeatures()Param for Number of features. Should be greater than 0.- Returns:
- (undocumented)
-