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

    https://github.com/apache/spark/pull/475#discussion_r12312167
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/mllib/tree/DecisionTreeSuite.scala ---
    @@ -390,6 +391,53 @@ class DecisionTreeSuite extends FunSuite with 
BeforeAndAfterAll {
         assert(bestSplits(0)._2.rightImpurity === 0)
         assert(bestSplits(0)._2.predict === 1)
       }
    +
    +  test("test second level node building with/without groups") {
    +    val arr = DecisionTreeSuite.generateOrderedLabeledPoints()
    +    assert(arr.length === 1000)
    +    val rdd = sc.parallelize(arr)
    +    val strategy = new Strategy(Classification, Entropy, 3, 100)
    +    val (splits, bins) = DecisionTree.findSplitsBins(rdd, strategy)
    +    assert(splits.length === 2)
    +    assert(splits(0).length === 99)
    +    assert(bins.length === 2)
    +    assert(bins(0).length === 100)
    +    assert(splits(0).length === 99)
    +    assert(bins(0).length === 100)
    +
    +    val leftFilter = Filter(new 
Split(0,400,FeatureType.Continuous,List()),-1)
    --- End diff --
    
    Put a space after `,`.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to