public static class GeneralizedLinearRegression.Link$
extends Object
implements scala.Serializable
Modifier and Type | Field and Description |
---|---|
static GeneralizedLinearRegression.Link$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Link$() |
Modifier and Type | Method and Description |
---|---|
org.apache.spark.ml.regression.GeneralizedLinearRegression.Link |
fromParams(org.apache.spark.ml.regression.GeneralizedLinearRegressionBase params)
Gets the
Link object based on param family, link and linkPower. |
public static final GeneralizedLinearRegression.Link$ MODULE$
public org.apache.spark.ml.regression.GeneralizedLinearRegression.Link fromParams(org.apache.spark.ml.regression.GeneralizedLinearRegressionBase params)
Link
object based on param family, link and linkPower.
If param family is set with "tweedie", return or construct link function object
according to linkPower; otherwise, return link function object according to link.
params
- the parameter map containing family, link and linkPower