Ignore:
Timestamp:
Mar 5, 2006, 2:33:47 PM (16 years ago)
Author:
Peter
Message:

re-introduced prediction in SVM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/classifier/KernelWeighted_SEV.h

    r527 r539  
    5454    /// @return kernel element between data @a ve and training sample @a i
    5555    ///
    56     //inline double element(const DataLookup1D& vec, const size_t i) const
    57     //{
    58     //  return (*kf_)(vec, DataLookup1D(data_,i),
    59     //                DataLookup1D(vec.size(),1.0),
    60     //                DataLookup1D(weights_,i));
    61     //}
     56    inline double element(const DataLookup1D& vec, const size_t i) const
     57    {
     58      return (*kf_)(vec, DataLookup1D(data_,i),
     59                    DataLookup1D(vec.size(),1.0),
     60                    DataLookup1D(weights_,i));
     61    }
    6262
    6363
Note: See TracChangeset for help on using the changeset viewer.