资源描述:
《最小二乘支持向量机.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、clcclearcloseall%---------------------------------------------------%产生训练样本与测试样本,每一列为一个样本k=125;m=10;n1=ones(5,125);n2=ones(5,10);n3=[120,150,218,247.7,56,181,0,57,4.32,23.51,24.16,93.5,96,93,910,20,24,26.7,220,33.9,46.9,70.2,72,128,139,144,159.8,230,679,15.21,20.37,22.1,16,35,73,86,336,
2、82,87,94,121,170,172.9,180,26.6,70.4,164,25.1,274,3,14,45,60,72,304,22.3,35.1,56,63,68,68,207,236,37,80,82,293,42,220,766,10,36.2,105,117,240,851,4072,4.6875,0.962,2,20.443,18.614,4.0787,17.187,17.314,11.299,11.31,3.7648,2587.2,1565,87.266,85.865,84.333,61.394,57.983,59,57,673.6,32.2,25
3、5,707,50.11,56,121,130.4,300.44,685,174,111,410,574,127,200,1678,162,334,48.155,49.77,45.703,39.216,56.982,32.597,26.859,43.737,20.385;120,60,120.7,148.7,78,262,434,77,193,61.33,261.05,36.7,41,58,1592,41.9,27.8,90.6,230,36.5,161.6,70.2,442,419,714,754,438.7,572.4,4992,61.25,59.79,64.1,2
4、37,30,520,110,419,81,87,195,69,320,334,97,22.7,69.5,244,411.91,376,198,221,168,139,160.3,443.5,7.8,50.6,99.9,149.6,99.2,99.2,416,410.2,130,243,161,134,98,340,990,4,12.6,169.4,257,676,2802,15850,10.826,15.787,16.667,17.036,17.972,20.83,21.432,21.731,21.834,21.835,26.818,7.882,98,6.5004,7
5、.0013,8.0593,10.822,18.866,28,13,423.5,5.5,48,115,15.97,13,14,2.39,42.14,102,24,58,120,256,107,48,652.9,35,39.9,1.4272,8.4485,9.1405,9.4118,10.479,15.47,16.887,17.018,17.175;33,40,126.6,78.7,18,41,226,19,118,45.21,196.13,11.2,12.8,43,801,20.2,24.4,49.2,57,31.5,94.1,171.5,221,269.4,351,2
6、50,312.4,343,1823,45.94,45.24,44.3,92,10,140,18,105,33,26,14,32,53,172,34,22.5,28.9,103,320.9,55,191,199,82,21,63.1,110.9,12.4,16.1,51.4,57.5,35.9,35.9,347,159,91,274.2,79,52,156,42,115,3,4.4,59.1,92,200,772,9057,17.522,12.299,3.8667,5.6786,6.6865,6.992,5.3708,5.8304,11.299,11.244,7.220
7、2,4.704,35,5.1647,4.4914,7.2211,4.1623,4.6218,9,0.1,77.6,1.4,8.3,11,4.66,2.4,3,7.22,3.25,9,9.3,0,18,22,11,14,80.7,5.6,47.8,4.0354,2.1505,2.4557,2.7451,1.2837,4.9724,3.0902,2.1034,1.7657;84,70,142.1,192.7,21,28,387,21,125,98.03,201.4,69.5,82.5,37,932,44.2,30,95,110,39.3,193.3,37