SVMs are considered by many to be the most powerful 'black box' learning algorithm, and by posing构建 a cleverly-chosen optimization objective优化目标, one of the most widely used learning algorithms today. 第一节 向量的内积(SVM的基本数学知识) Support Vector Machines 支持向
1.直接遍历数组 ,,,,,,,]; ]; ;i<arr.length;i++){ if(max<arr[i]) max=arr[i]; } 2.借用Math的方法 ,,,,,,,]; var max = Math.max.apply(Math,arr); 取最小值反之: 3.数组平均值 var arr = [5,8,2,3,7,6,9,1,4,8,3,0]; var sum=0; for(var i = 0; i < arr.length; i++){ sum += arr[i]; }