Skip to content

Commit

Permalink
Changed the option name MinRecords to MinSize.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Jul 15, 2013
1 parent 6c1ad46 commit 0badafc
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 @@ -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"],
Expand All @@ -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],
Expand Down

0 comments on commit 0badafc

Please sign in to comment.