Package org.apache.spark.ml.feature
Interface SelectorParams
- All Superinterfaces:
- HasFeaturesCol,- HasLabelCol,- HasOutputCol,- Identifiable,- Params,- Serializable
- All Known Implementing Classes:
- ChiSqSelector,- ChiSqSelectorModel
Params for 
Selector and SelectorModel.- 
Method SummaryModifier and TypeMethodDescriptionfdr()The upper bound of the expected false discovery rate.fpr()The highest p-value for features to be kept.fwe()The upper bound of the expected family-wise error rate.doublegetFdr()doublegetFpr()doublegetFwe()intdoubleNumber of features that selector will select, ordered by ascending p-value.Percentile of features that selector will select, ordered by ascending p-value.The selector type.Methods inherited from interface org.apache.spark.ml.param.shared.HasFeaturesColfeaturesCol, getFeaturesColMethods inherited from interface org.apache.spark.ml.param.shared.HasLabelColgetLabelCol, labelColMethods inherited from interface org.apache.spark.ml.param.shared.HasOutputColgetOutputCol, outputColMethods inherited from interface org.apache.spark.ml.util.IdentifiabletoString, uidMethods inherited from interface org.apache.spark.ml.param.Paramsclear, copy, copyValues, defaultCopy, defaultParamMap, estimateMatadataSize, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
- 
Method Details- 
fdrDoubleParam fdr()The upper bound of the expected false discovery rate. Only applicable when selectorType = "fdr". Default value is 0.05.- Returns:
- (undocumented)
 
- 
fprDoubleParam fpr()The highest p-value for features to be kept. Only applicable when selectorType = "fpr". Default value is 0.05.- Returns:
- (undocumented)
 
- 
fweDoubleParam fwe()The upper bound of the expected family-wise error rate. Only applicable when selectorType = "fwe". Default value is 0.05.- Returns:
- (undocumented)
 
- 
getFdrdouble getFdr()
- 
getFprdouble getFpr()
- 
getFwedouble getFwe()
- 
getNumTopFeaturesint getNumTopFeatures()
- 
getPercentiledouble getPercentile()
- 
getSelectorTypeString getSelectorType()
- 
numTopFeaturesIntParam numTopFeatures()Number of features that selector will select, ordered by ascending p-value. If the number of features is less than numTopFeatures, then this will select all features. Only applicable when selectorType = "numTopFeatures". The default value of numTopFeatures is 50.- Returns:
- (undocumented)
 
- 
percentileDoubleParam percentile()Percentile of features that selector will select, ordered by ascending p-value. Only applicable when selectorType = "percentile". Default value is 0.1.- Returns:
- (undocumented)
 
- 
selectorTypeThe selector type. Supported options: "numTopFeatures" (default), "percentile", "fpr", "fdr", "fwe"- Returns:
- (undocumented)
 
 
-