Package org.apache.spark.ml.param.shared
Interface HasElasticNetParam
- All Superinterfaces:
Identifiable
,Params
,Serializable
- All Known Subinterfaces:
LinearRegressionParams
,LogisticRegressionParams
- All Known Implementing Classes:
LinearRegression
,LinearRegressionModel
,LogisticRegression
,LogisticRegressionModel
Trait for shared param elasticNetParam. This trait may be changed or
removed between minor versions.
-
Method Summary
Modifier and TypeMethodDescriptionParam for the ElasticNet mixing parameter, in range [0, 1].double
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
-
elasticNetParam
DoubleParam elasticNetParam()Param for the ElasticNet mixing parameter, in range [0, 1]. For alpha = 0, the penalty is an L2 penalty. For alpha = 1, it is an L1 penalty.- Returns:
- (undocumented)
-
getElasticNetParam
double getElasticNetParam()
-