I am getting this error when trying to classify matrix data:
Error using classify (line 220) TRAINING must have more observations than the number of groups.
My classification data matrix is 10×5, my training matrix is 2×5, and my group vector is of length 2:
classificationFeatureValues =
1.0e+004 * 0.0006 0.0761 0.0065 3.7003 0.0113 0.0005 0.0683 0.0063 3.3502 0.0114 0.0006 0.0761 0.0065 3.7003 0.0113 0.0005 0.0683 0.0063 3.3502 0.0114 0.0006 0.0761 0.0065 3.7003 0.0113 0.0005 0.0683 0.0063 3.3502 0.0114 0.0006 0.0761 0.0065 3.7003 0.0113 0.0005 0.0683 0.0063 3.3502 0.0114 0.0006 0.0761 0.0065 3.7003 0.0113 0.0005 0.0683 0.0063 3.3502 0.0114
training =
1.0e+004 * 0.0005 0.0683 0.0063 3.3502 0.0113 0.0006 0.0761 0.0065 3.7003 0.0114
group =
1 2
I can't seem to find the error here…
Steve
Best Answer