Ignore:
Timestamp:
Feb 23, 2008, 11:52:43 PM (14 years ago)
Author:
Peter
Message:

using Index class instead of std::vector<size_t>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/feature_selection_test.cc

    r1121 r1134  
    8080  f2.update(dataviewweighted,targets);
    8181  *error << "\nRandomly ordered features (top 12):\n";
    82   std::vector<size_t> features=f2.features();
     82  std::vector<size_t> features=f2.features().vector();
    8383  std::copy(features.begin(),features.end(),
    8484            std::ostream_iterator<size_t>(*error," "));
     
    8787  f.update(dataviewweighted,targets);
    8888  *error << "\nSNR ordered ordered features (top 12):\n";
    89   features=f.features();
     89  features=f.features().vector();
    9090  std::copy(features.begin(),features.end(),
    9191            std::ostream_iterator<size_t>(*error," "));
     
    108108  classifier::MatrixLookupWeighted ranked=f.get(dataviewweighted);
    109109  f.update(ranked,targets);
    110   features=f.features();
     110  features=f.features().vector();
    111111  for(size_t i=0;i<features.size();i++) {
    112112    if(features[i]!=i) {
Note: See TracChangeset for help on using the changeset viewer.