From 0badafc5d0e9241c753709fecf1b26e3c19ef421 Mon Sep 17 00:00:00 2001 From: Anton Antonov Date: Mon, 15 Jul 2013 07:48:38 -0400 Subject: [PATCH] Changed the option name MinRecords to MinSize. --- AVCDecisionTreeForest.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AVCDecisionTreeForest.m b/AVCDecisionTreeForest.m index b80e2830..5263492e 100644 --- a/AVCDecisionTreeForest.m +++ b/AVCDecisionTreeForest.m @@ -256,7 +256,7 @@ Mathematica is (C) Copyright 1988-2012 Wolfram Research, Inc. Clear[BuildDecisionTree] Options[BuildDecisionTree] = {"RandomAxes" -> False, "ImpurityFunction" -> "Gini", "ImpurityThreshold" -> 0, "NumberOfStrata" -> 100, - "LinearCombinations" -> {"MinRecords" -> 200, "SVDRank" -> 2}}; + "LinearCombinations" -> {"MinSize" -> 200, "SVDRank" -> 2}}; BuildDecisionTree[data_, columnTypes_, level_Integer, Theta_, opts : OptionsPattern[]] := Block[{res, d1, d2, axesArg, randomAxes = OptionValue[BuildDecisionTree, "RandomAxes"], @@ -267,7 +267,7 @@ Mathematica is (C) Copyright 1988-2012 Wolfram Research, Inc. linCombMinRecs, svdRank}, (* Options handling *) - {linCombMinRecs, svdRank} = {"MinRecords", "SVDRank"} /. linComb /. {"MinRecords" -> 200, "SVDRank" -> 2}; + {linCombMinRecs, svdRank} = {"MinSize", "SVDRank"} /. linComb /. {"MinSize" -> 200, "SVDRank" -> 2}; Which[ TrueQ[svdRank === All], svdRank = Count[columnTypes, Number],