Skip to content

Commit

Permalink
No linear combinations of numerical variables are used if the number …
Browse files Browse the repository at this point in the history
…of numerical variable is less than 2.
  • Loading branch information
antononcube committed Jan 5, 2016
1 parent bdfc92b commit 8701ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AVCDecisionTreeForest.m
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ Mathematica is (C) Copyright 1988-2012 Wolfram Research, Inc.
True,
{linCombMinRecs, linCombMaxRecs, svdRank, cdSVDRank, svdLabels} = {Length[data], Length[data], 0, 0, {}}
];
If[ nNumVars==0,
If[ nNumVars < 2,
{linCombMinRecs, linCombMaxRecs, svdRank, cdSVDRank, svdLabels} = {Length[data], Length[data], 0, 0, {}}
];
If[TrueQ[linCombMinRecs === Automatic], linCombMinRecs = Floor[0.1 Dimensions[data][[1]]]];
Expand Down

0 comments on commit 8701ba4

Please sign in to comment.