Class GeneralizedLinearRegression.Family$

Object
org.apache.spark.ml.regression.GeneralizedLinearRegression.Family$
All Implemented Interfaces:
Serializable
Enclosing class:
GeneralizedLinearRegression

public static class GeneralizedLinearRegression.Family$ extends Object implements Serializable
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.spark.ml.regression.GeneralizedLinearRegression.Family
    fromParams(org.apache.spark.ml.regression.GeneralizedLinearRegressionBase params)
    Gets the GeneralizedLinearRegression.Family object based on param family and variancePower.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Family$

      public Family$()
  • Method Details

    • fromParams

      public org.apache.spark.ml.regression.GeneralizedLinearRegression.Family fromParams(org.apache.spark.ml.regression.GeneralizedLinearRegressionBase params)
      Gets the GeneralizedLinearRegression.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)