From 6bb0709b27ae5f77af543ce53a106eaaae612d6a Mon Sep 17 00:00:00 2001 From: Anton Antonov Date: Sun, 21 Jul 2013 17:31:26 -0400 Subject: [PATCH] Copy-and-paste bug fix. --- AVCDecisionTreeForest.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AVCDecisionTreeForest.m b/AVCDecisionTreeForest.m index 3535b09a..c142d137 100644 --- a/AVCDecisionTreeForest.m +++ b/AVCDecisionTreeForest.m @@ -496,10 +496,10 @@ Mathematica is (C) Copyright 1988-2012 Wolfram Research, Inc. (* Classify by forest *) Clear[DecisionForestClassify] -Options[DecisionForestClassify] = {"Weighted" -> False}; +Options[DecisionForestClassify] = {"Weighted" -> True}; DecisionForestClassify[forest_, record_, opts : OptionsPattern[]] := Block[{res, weightedQ = OptionValue[DecisionForestClassify, "Weighted"]}, - res = TreeClassify[#, record] & /@ forest; + res = DecisionTreeClassify[#, record] & /@ forest; res = Flatten[res, 1]; If[TrueQ[weightedQ], res = GatherBy[res, #[[2]] &]; @@ -514,7 +514,7 @@ Mathematica is (C) Copyright 1988-2012 Wolfram Research, Inc. Options[ParallelDecisionForestClassify] = {"Weighted" -> False}; ParallelDecisionForestClassify[forest_, record_] := Block[{res, weightedQ = OptionValue[ParallelDecisionForestClassify, "Weighted"]}, - res = ParallelMap[TreeClassify[#, record] &, forest, Method -> "CoarsestGrained", DistributedContexts -> Automatic]; + res = ParallelMap[DecisionTreeClassify[#, record] &, forest, Method -> "CoarsestGrained", DistributedContexts -> Automatic]; res = Flatten[res, 1]; If[TrueQ[weightedQ], res = GatherBy[res, #[[2]] &];