Ignore:
Timestamp:
Feb 14, 2008, 7:05:37 AM (14 years ago)
Author:
Peter
Message:

fixes #312 and added passing of data in EB constructors

File:
1 edited

Legend:

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

    r1049 r1087  
    2828
    2929#include "KernelLookup.h"
    30 #include "SupervisedClassifier.h"
    3130#include "SVindex.h"
     31#include "Target.h"
    3232#include "yat/utility/vector.h"
    3333
     
    5252  /// taken care of outside (in the kernel).
    5353  ///   
    54   class SVM : public SupervisedClassifier
     54  class SVM
    5555  {
    5656 
     
    7575    /// If DataLookup2D is not a KernelLookup a bad_cast exception is thrown.
    7676    ///
    77     SupervisedClassifier*
    78     make_classifier(const DataLookup2D&, const Target&) const;
     77    SVM* make_classifier(const DataLookup2D&, const Target&) const;
    7978
    8079    ///
     
    246245    bool owner_;
    247246    SVindex sample_;
     247    Target target_;
    248248    bool trained_;
    249249    double tolerance_;
Note: See TracChangeset for help on using the changeset viewer.