Ignore:
Timestamp:
Jan 16, 2004, 6:40:51 PM (18 years ago)
Author:
Peter
Message:

adding SVM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PolynomialKernelFunction.cc

    r25 r30  
    3131     nof_valid_datapairs++;
    3232    }
    33   cout << nof_valid_datapairs << endl;
     33  //cout << nof_valid_datapairs << endl;
    3434  if (nof_valid_datapairs == 0)
    3535    cerr << "data file error: two columns "
    3636   << " have no pair of valid data\n";
    37   tmp/=nof_valid_datapairs * a.size();
     37 
     38  tmp/=nof_valid_datapairs / a.size(); //correcting for missing values
     39 
    3840  if(order_>1)
    3941    return pow(1+tmp,order_);
Note: See TracChangeset for help on using the changeset viewer.