关注 spark技术分享,
撸spark源码 玩spark最佳实践

GeneralizedLinearRegression

GeneralizedLinearRegression (GLM)

GeneralizedLinearRegression is a regression algorithm. It supports the following error distribution families:

  1. gaussian

  2. binomial

  3. poisson

  4. gamma

GeneralizedLinearRegression supports the following relationship between the linear predictor and the mean of the distribution function links:

  1. identity

  2. logit

  3. log

  4. inverse

  5. probit

  6. cloglog

  7. sqrt

GeneralizedLinearRegression supports 4096 features.

The label column has to be of DoubleType type.

Note
GeneralizedLinearRegression belongs to org.apache.spark.ml.regression package.

GeneralizedLinearRegression is a Regressor with features of Vector type that can train a GeneralizedLinearRegressionModel.

GeneralizedLinearRegressionModel

Regressor

Regressor is a custom Predictor.

赞(0) 打赏
未经允许不得转载:spark技术分享 » GeneralizedLinearRegression
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏