@@ -252,7 +252,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
252252 maxBins = 100 ,
253253 categoricalFeaturesInfo = Map (0 -> 3 , 1 -> 3 ))
254254 val (splits, bins) = DecisionTree .findSplitsBins(rdd, strategy)
255- strategy.numBins = 100
256255 val bestSplits = DecisionTree .findBestSplits(rdd, new Array (7 ), strategy, 0 ,
257256 Array [List [Filter ]](), splits, bins)
258257
@@ -280,7 +279,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
280279 maxBins = 100 ,
281280 categoricalFeaturesInfo = Map (0 -> 3 , 1 -> 3 ))
282281 val (splits, bins) = DecisionTree .findSplitsBins(rdd,strategy)
283- strategy.numBins = 100
284282 val bestSplits = DecisionTree .findBestSplits(rdd, new Array (7 ), strategy, 0 ,
285283 Array [List [Filter ]](), splits, bins)
286284
@@ -310,7 +308,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
310308 assert(splits(0 ).length === 99 )
311309 assert(bins(0 ).length === 100 )
312310
313- strategy.numBins = 100
314311 val bestSplits = DecisionTree .findBestSplits(rdd, new Array (7 ), strategy, 0 ,
315312 Array [List [Filter ]](), splits, bins)
316313 assert(bestSplits.length === 1 )
@@ -334,7 +331,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
334331 assert(splits(0 ).length === 99 )
335332 assert(bins(0 ).length === 100 )
336333
337- strategy.numBins = 100
338334 val bestSplits = DecisionTree .findBestSplits(rdd, Array (0.0 ), strategy, 0 ,
339335 Array [List [Filter ]](), splits, bins)
340336 assert(bestSplits.length === 1 )
@@ -359,7 +355,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
359355 assert(splits(0 ).length === 99 )
360356 assert(bins(0 ).length === 100 )
361357
362- strategy.numBins = 100
363358 val bestSplits = DecisionTree .findBestSplits(rdd, Array (0.0 ), strategy, 0 ,
364359 Array [List [Filter ]](), splits, bins)
365360 assert(bestSplits.length === 1 )
@@ -384,7 +379,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
384379 assert(splits(0 ).length === 99 )
385380 assert(bins(0 ).length === 100 )
386381
387- strategy.numBins = 100
388382 val bestSplits = DecisionTree .findBestSplits(rdd, Array (0.0 ), strategy, 0 ,
389383 Array [List [Filter ]](), splits, bins)
390384 assert(bestSplits.length === 1 )
0 commit comments