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_MEV.h

    r527 r539  
    5252    /// @return kernel element between data @a ve and training sample @a i
    5353    ///
    54     //inline double element(const gslapi::vector& vec, const size_t i) const
    55     //{
    56     //  return (*kf_)(vec, gslapi::vector(data_,i),
    57     //                       gslapi::vector(vec.size(),1.0),
    58     //                       gslapi::vector(weights_,i));
    59     //}
     54    inline double element(const DataLookup1D& vec, const size_t i) const
     55    {
     56      return (*kf_)(vec, DataLookup1D(data_,i),
     57                    DataLookup1D(vec.size(),1.0),
     58                    DataLookup1D(weights_,i));
     59    }
    6060
    6161  private:
Note: See TracChangeset for help on using the changeset viewer.