如下是楼主使用的训练数据,想请教报错的意思和解决办法?
> data
TempAve PrecAve PrecAveSquare Expoor goodbad Exgood JulyYield Trend_tag
1 73.62 3.06 9.35 27 5 51 39.9 less
2 73.46 3.04 9.25 29 7 53 40.7 less
3 72.20 3.92 15.33 32 9 56 41.5 more
4 71.12 6.01 36.10 43 10 63 41.6 less
5 68.59 5.34 28.54 46 13 67 42.6 less
6 73.00 7.16 51.29 40 15 66 42.9 more
7 74.09 4.87 23.67 39 9 61 43.4 less
8 76.56 2.99 8.94 2 -12 29 40.5 less
9 70.33 3.16 9.97 44 11 64 44.5 less
10 70.38 6.35 40.32 50 15 71 45.2 more
11 70.93 5.70 32.46 42 10 63 46.0 more
12 72.92 4.78 22.85 51 14 72 46.7 more
> boosting(Trend_tag~.,data = data)
Error in cbind(yval2, yprob, nodeprob) :
number of rows of matrices must match (see arg 2)