Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5740#discussion_r29273033
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/feature/PolynomialExpansion.scala ---
    @@ -38,9 +38,12 @@ class PolynomialExpansion extends 
UnaryTransformer[Vector, Vector, PolynomialExp
     
       /**
        * The polynomial degree to expand, which should be larger than 1.
    +   * Default: 2
        * @group param
        */
    -  val degree = new IntParam(this, "degree", "the polynomial degree to 
expand")
    +  val degree = new IntParam(this, "degree", "the polynomial degree to 
expand",
    +    ParamValidate.gt[Int](2))
    --- End diff --
    
    `gt(1)`. Users may set degree to `1` to turn off polynomial expansion in 
tuning.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to