Ignore:
Timestamp:
Feb 26, 2008, 2:25:19 PM (14 years ago)
Author:
Markus Ringnér
Message:

Refs #318

File:
1 edited

Legend:

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

    r1125 r1157  
    3939
    4040  class DataLookup2D;
     41  class MatrixLookup;
     42  class MatrixLookupWeighted;
    4143  class Target;
    4244
     
    5052  public:
    5153    ///
    52     /// @brief Constructor taking a Target object.
     54    /// @brief Constructor
    5355    ///
    54     SupervisedClassifier(const Target&);
     56    SupervisedClassifier(void);
    5557   
    5658
     
    5961    ///
    6062    virtual ~SupervisedClassifier(void);
    61 
    62     ///
    63     /// @brief Access to the training data
    64     ///
    65     virtual const DataLookup2D& data(void) const =0;
    6663
    6764
     
    7572    ///
    7673    virtual SupervisedClassifier*
    77     make_classifier(const DataLookup2D&, const Target&) const =0;
     74    make_classifier() const =0;
    7875   
    7976
     
    8885    /// Train the classifier.
    8986    ///
    90     virtual void train()=0;
     87    virtual void train(const MatrixLookup&, const Target&)=0;
     88
     89    ///
     90    /// Train the classifier.
     91    ///
     92    virtual void train(const MatrixLookupWeighted&, const Target&)=0;
    9193
    9294   
    9395  protected:
    9496   
    95     /// Target to train on.
    96     const Target& target_;
    9797    /// true if classifier successfully trained
    98     bool trained_;
    99    
     98    bool trained_;   
    10099   
    101100  }; 
Note: See TracChangeset for help on using the changeset viewer.