Skip to content

Commit

Permalink
Changed the implementation of BuildDecisionForest.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Jul 21, 2013
1 parent 6bb0709 commit cf71434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AVCDecisionTreeForest.m
Original file line number Diff line number Diff line change
Expand Up @@ -462,11 +462,11 @@ Mathematica is (C) Copyright 1988-2012 Wolfram Research, Inc.

Clear[BuildDecisionForest]
BuildDecisionForest[data_, th_, n_Integer, opts : OptionsPattern[]] :=
Table[BuildDecisionTree[data, th, "RandomAxes" -> True, opts], {n}];
Table[BuildDecisionTree[data, th, Sequence @@ Append[{opts}, "RandomAxes" -> True]], {n}];

Clear[ParallelBuildDecisionForest]
ParallelBuildDecisionForest[data_, th_, n_Integer, opts : OptionsPattern[]] :=
ParallelTable[BuildDecisionTree[data, th, "RandomAxes" -> True, opts], {n}];
ParallelTable[BuildDecisionTree[data, th, Sequence @@ Append[{opts}, "RandomAxes" -> True]], {n}];

(* Classify by tree *)

Expand Down

0 comments on commit cf71434

Please sign in to comment.