gendatw problem
Posted: 05 February 2010 09:02 AM   [ Ignore ]  
Jr. Member
RankRank
Total Posts:  35
Joined  2009-03-25

Hello, BobDuin.
I program Asymmetric AdaBoost code. The weight of two class is skewed. For example the weights of first class are five times than that of second class. When I subsample from dataset a,
b=gendatw(a,u,ceil(0.2*m));
one error arise:

??? Index exceeds matrix dimensions.

Error in ==> D:\matlab_tools\prtools\@dataset\subsref.p>subsref at 61

Error in ==> gendatw at 35
b = a(L,:);

Error in ==> asymmadaboost at 64
b=gendatw(a,u,ceil(0.2*m)); % sample training set,
What’mean is it? How can I do it?

Please help me. Thank a lots.

Profile
 
 
Posted: 05 February 2010 09:26 AM   [ Ignore ]   [ # 1 ]  
Jr. Member
RankRank
Total Posts:  35
Joined  2009-03-25

The problem has been solved. I divide dataset a into two parts,train set b and test set c. When I pass parameters, the weight of a isn’t comply with number of b.
Sorry.

Profile