Definition at line 1343 of file svm.cpp. References svm_parameter::eps, svm_problem::l, svm_parameter::nu, svm_parameter::shrinking, and Solver::Solve(). Referenced by svm_train_one(). 01346 { 01347 int l = prob->l; 01348 double *zeros = new double[l]; 01349 schar *ones = new schar[l]; 01350 int i; 01351 01352 int n = (int)(param->nu*prob->l); // # of alpha's at upper bound 01353 01354 for(i=0;i<n;i++) 01355 alpha[i] = 1; 01356 alpha[n] = param->nu * prob->l - n; 01357 for(i=n+1;i<l;i++) 01358 alpha[i] = 0; 01359 01360 for(i=0;i<l;i++) 01361 { 01362 zeros[i] = 0; 01363 ones[i] = 1; 01364 } 01365 01366 Solver s; 01367 s.Solve(l, ONE_CLASS_Q(*prob,*param), zeros, ones, 01368 alpha, 1.0, 1.0, param->eps, si, param->shrinking); 01369 01370 delete[] zeros; 01371 delete[] ones; 01372 }
Here is the call graph for this function:
|