Ignore:
Timestamp:
Mar 10, 2006, 4:58:16 PM (18 years ago)
Author:
Peter
Message:

ConsensusInputRanker? now supports weights

File:
1 edited

Legend:

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

    r522 r558  
    2929    rank_.resize(nof_inputs);
    3030    while (sampler.more()){
    31       // Peter, should support weights also (in sampler???)
    32       input_rankers_.push_back(InputRanker(sampler.training_data(),
    33                                            sampler.training_target(),
    34                                            score_object));
     31      if (sampler.weighted()){
     32        input_rankers_.push_back(InputRanker(sampler.training_data(),
     33                                             sampler.training_target(),
     34                                             score_object));
     35      }
     36      else{
     37        input_rankers_.push_back(InputRanker(sampler.training_data(),
     38                                             sampler.training_target(),
     39                                             score_object));
     40      }
    3541      sampler.next();
    3642    }
Note: See TracChangeset for help on using the changeset viewer.