--- a +++ b/Ensemble Learning/AdaBoost/initStump.m @@ -0,0 +1,7 @@ +function stump = initStump(dim) +stump.dim = dim; +stump.error = 1e6; +stump.threshold = []; +stump.less = 1; +stump.more = -1; +end