Changeset 552


Ignore:
Timestamp:
Mar 7, 2006, 2:52:31 PM (16 years ago)
Author:
Peter
Message:

killed bug in SVM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/classifier/SVM.cc

    r547 r552  
    110110
    111111    assert(input.rows()==alpha_.size());
    112     prediction=gslapi::matrix(2,input.columns(),0);
     112    prediction = gslapi::matrix(2,input.columns(),0);
    113113    for (size_t i = 0; i<input.columns(); i++){
    114       for (size_t j = 0; i<input.rows(); i++)
     114      for (size_t j = 0; j<input.rows(); j++)
    115115        prediction(0,i) += target(j)*alpha_(i)*(*input_kernel)(j,i);
    116116      prediction(0,i) += bias_;
Note: See TracChangeset for help on using the changeset viewer.