zhengruifeng created SPARK-14758:
------------------------------------

             Summary: Add checking for StepSize and Tol
                 Key: SPARK-14758
                 URL: https://issues.apache.org/jira/browse/SPARK-14758
             Project: Spark
          Issue Type: Improvement
          Components: ML
            Reporter: zhengruifeng


The following code run successfully and return a model. 
{code}
val data = ...
val gbt = new GBTRegressor().setStepSize(-1)
val linear = new LinearRegression().setTol(-1)
val model = linear.fit(data)
{code}

The {{setStepSize}} and {{setTol}} should throw some exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to