当前位置:   article > 正文

pyspark-ml学习笔记:逻辑回归、GBDT、xgboost参数介绍_pyspark xgb参数

pyspark xgb参数

逻辑回归、GBDT可以参考pyspark开发文档:http://spark.apache.org/docs/latest/api/python/pyspark.ml.html#pyspark.ml.classification.LogisticRegression 。

xgboost查看:https://xgboost.ai 。

下面只列出分类是的参数介绍:(对于回归时的自行查看)

逻辑回归:

  1. featuresCol = 'features'
  2. labelCol = 'label'
  3. predictionCol = 'prediction'
  4. # max number of iterations (>= 0). 最大迭代次数(>= 0)
  5. self.maxIter = 100
  6. # regularization parameter (>= 0). 正则化参数(>= 0)
  7. regParam = 0.0
  8. # range [0, 1]. For alpha = 0, the penalty is an L2 penalty. For alpha = 1, it is an L1 penalty.') 选择L1或者L2
  9. elasticNetParam = 0.0
  10. # the convergence tolerance for iterative algorithms (>= 0).
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号