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

    https://github.com/apache/spark/pull/7447#discussion_r36779933
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/ml/regression/DecisionTreeRegressorSuite.scala
 ---
    @@ -61,6 +62,16 @@ class DecisionTreeRegressorSuite extends SparkFunSuite 
with MLlibTestSparkContex
         compareAPIs(categoricalDataPointsRDD, dt, categoricalFeatures)
       }
     
    +  test("copied model must have the same parent") {
    +    val categoricalFeatures = Map(0 -> 2, 1-> 2)
    +    val df = TreeTests.setMetadata(categoricalDataPointsRDD, 
categoricalFeatures, numClasses = 0)
    +    val model = new DecisionTreeRegressor()
    +      .setImpurity("variance")
    +      .setMaxDepth(2)
    +      .setMaxBins(100).fit(df)
    --- End diff --
    
    Make this as quick a test as possible.  Set maxBins to something small (8?).


---
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