Package org.apache.spark.ml.regression
Class GeneralizedLinearRegression.Family$
Object
org.apache.spark.ml.regression.GeneralizedLinearRegression.Family$
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GeneralizedLinearRegression
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final GeneralizedLinearRegression.Family$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.spark.ml.regression.GeneralizedLinearRegression.Family
Gets theGeneralizedLinearRegression.Family
object based on param family and variancePower.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Family$
public Family$()
-
-
Method Details
-
fromParams
public org.apache.spark.ml.regression.GeneralizedLinearRegression.Family fromParams(GeneralizedLinearRegressionBase params) Gets theGeneralizedLinearRegression.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.- Parameters:
params
- the parameter map containing family name and variance power- Returns:
- (undocumented)
-