Ignore:
Timestamp:
Feb 25, 2008, 3:32:35 PM (14 years ago)
Author:
Markus Ringnér
Message:

Refs #335, fixed for NCC, working on KNN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/KNN_Uniform.cc

    r1112 r1142  
    1818                               utility::VectorMutable& prediction) const
    1919  {           
    20     std::vector<size_t>::size_type k=k_sorted.size();
    21     for(size_t j=0;j<k;j++)
     20    for(size_t j=0;j<k_sorted.size();j++)
    2221      prediction(target(k_sorted[j]))+=1.0;           
    2322  }
Note: See TracChangeset for help on using the changeset viewer.