Ignore:
Timestamp:
Sep 5, 2006, 4:29:39 AM (15 years ago)
Author:
Peter
Message:

fixes #109 and #110

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/classifier/FeatureSelectorIR.cc

    r608 r624  
    3434
    3535
    36   void FeatureSelectorIR::update(const DataLookup2D& data, const Target& target)
     36  void FeatureSelectorIR::update(const MatrixLookup& data, const Target& target)
     37  {
     38    InputRanker ir = InputRanker(data, target, score_);
     39    features_.resize(N_);
     40    std::copy(ir.rank().begin()+first_, ir.rank().begin()+first_+N_,
     41              features_.begin());
     42   
     43  }
     44
     45
     46  void FeatureSelectorIR::update(const MatrixLookupWeighted& data,
     47                                 const Target& target)
    3748  {
    3849    InputRanker ir = InputRanker(data, target, score_);
Note: See TracChangeset for help on using the changeset viewer.