Ignore:
Timestamp:
Feb 24, 2006, 5:29:22 PM (17 years ago)
Author:
Markus Ringnér
Message:

Added structure to Supervised classifier and NCC to support ranking inputs with a statistics::Score and using only top-scoring inputs in classification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/classifier/SupervisedClassifier.h

    r523 r525  
    44#define _theplu_classifier_supervisedclassifier_
    55
     6#include <cctype>
    67
    78namespace theplu {
     
    1213  }
    1314
     15  namespace statistics {
     16    class Score;
     17  }
     18
     19
    1420namespace classifier { 
    1521
    1622  class DataLookup2D;
    17   class Target;
     23  class InputRanker;  class Target;
    1824
    1925
     
    2935    /// Constructor. Taking a vector of target values.
    3036    ///
    31     SupervisedClassifier(const Target&);
     37    SupervisedClassifier(const Target&, statistics::Score* =0,
     38                         const size_t=0);
    3239   
    3340    ///
     
    6269   
    6370    const Target& target_;
     71    statistics::Score* score_;
     72    classifier::InputRanker* ranker_;
     73    size_t nof_inputs_;
    6474    bool trained_;
    6575   
Note: See TracChangeset for help on using the changeset viewer.