@@ -252,7 +252,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
252
252
maxBins = 100 ,
253
253
categoricalFeaturesInfo = Map (0 -> 3 , 1 -> 3 ))
254
254
val (splits, bins) = DecisionTree .findSplitsBins(rdd, strategy)
255
- strategy.numBins = 100
256
255
val bestSplits = DecisionTree .findBestSplits(rdd, new Array (7 ), strategy, 0 ,
257
256
Array [List [Filter ]](), splits, bins)
258
257
@@ -280,7 +279,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
280
279
maxBins = 100 ,
281
280
categoricalFeaturesInfo = Map (0 -> 3 , 1 -> 3 ))
282
281
val (splits, bins) = DecisionTree .findSplitsBins(rdd,strategy)
283
- strategy.numBins = 100
284
282
val bestSplits = DecisionTree .findBestSplits(rdd, new Array (7 ), strategy, 0 ,
285
283
Array [List [Filter ]](), splits, bins)
286
284
@@ -310,7 +308,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
310
308
assert(splits(0 ).length === 99 )
311
309
assert(bins(0 ).length === 100 )
312
310
313
- strategy.numBins = 100
314
311
val bestSplits = DecisionTree .findBestSplits(rdd, new Array (7 ), strategy, 0 ,
315
312
Array [List [Filter ]](), splits, bins)
316
313
assert(bestSplits.length === 1 )
@@ -334,7 +331,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
334
331
assert(splits(0 ).length === 99 )
335
332
assert(bins(0 ).length === 100 )
336
333
337
- strategy.numBins = 100
338
334
val bestSplits = DecisionTree .findBestSplits(rdd, Array (0.0 ), strategy, 0 ,
339
335
Array [List [Filter ]](), splits, bins)
340
336
assert(bestSplits.length === 1 )
@@ -359,7 +355,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
359
355
assert(splits(0 ).length === 99 )
360
356
assert(bins(0 ).length === 100 )
361
357
362
- strategy.numBins = 100
363
358
val bestSplits = DecisionTree .findBestSplits(rdd, Array (0.0 ), strategy, 0 ,
364
359
Array [List [Filter ]](), splits, bins)
365
360
assert(bestSplits.length === 1 )
@@ -384,7 +379,6 @@ class DecisionTreeSuite extends FunSuite with BeforeAndAfterAll {
384
379
assert(splits(0 ).length === 99 )
385
380
assert(bins(0 ).length === 100 )
386
381
387
- strategy.numBins = 100
388
382
val bestSplits = DecisionTree .findBestSplits(rdd, Array (0.0 ), strategy, 0 ,
389
383
Array [List [Filter ]](), splits, bins)
390
384
assert(bestSplits.length === 1 )
0 commit comments