Skip to content

Commit

Permalink
fix random forest unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chouqin committed Oct 13, 2014
1 parent 092efcb commit 3c72913
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class RandomForestSuite extends FunSuite with LocalSparkContext {
val categoricalFeaturesInfo = Map.empty[Int, Int]
val numTrees = 1

val strategy = new Strategy(algo = Classification, impurity = Gini, maxDepth = 2,
val strategy = new Strategy(algo = Classification, impurity = Gini,
maxDepth = 2, maxBins = 10,
numClassesForClassification = 2, categoricalFeaturesInfo = categoricalFeaturesInfo)

val rf = RandomForest.trainClassifier(rdd, strategy, numTrees = numTrees,
Expand Down

0 comments on commit 3c72913

Please sign in to comment.