public static class GeneralizedLinearRegression.Family$
extends Object
implements scala.Serializable
| Modifier and Type | Field and Description |
|---|---|
static GeneralizedLinearRegression.Family$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
| Constructor and Description |
|---|
Family$() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.spark.ml.regression.GeneralizedLinearRegression.Family |
fromParams(GeneralizedLinearRegressionBase params)
Gets the
Family object based on param family and variancePower. |
public static final GeneralizedLinearRegression.Family$ MODULE$
public org.apache.spark.ml.regression.GeneralizedLinearRegression.Family fromParams(GeneralizedLinearRegressionBase params)
Family object based on param family and variancePower.
If param family is set with "gaussian", "binomial", "poisson" or "gamma",
return the corresponding object directly; otherwise, construct a Tweedie object
according to variancePower.
params - the parameter map containing family name and variance power