Changeset 491


Ignore:
Timestamp:
Jan 4, 2006, 9:49:12 PM (16 years ago)
Author:
Peter
Message:

made SVM inherit from SupervisedClassifer?

Location:
trunk/lib/classifier
Files:
2 edited

Legend:

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

    r475 r491  
    138138
    139139  SVM::SVM(const KernelLookup& kernel, const Target& target)
    140   : alpha_(target.size(),0),
    141     bias_(0),
    142     C_inverse_(0),
    143     kernel_(kernel),
    144     max_epochs_(10000000),
    145     output_(target.size(),0),
    146     sample_(target.size()),
    147     target_(target),
    148     trained_(false),
    149     tolerance_(0.00000001)
     140    : SupervisedClassifier(kernel,target),
     141      alpha_(target.size(),0),
     142      bias_(0),
     143      C_inverse_(0),
     144      kernel_(kernel),
     145      max_epochs_(10000000),
     146      output_(target.size(),0),
     147      sample_(target.size()),
     148      target_(target),
     149      trained_(false),
     150      tolerance_(0.00000001)
    150151  {
    151152  }
  • trunk/lib/classifier/SVM.h

    r475 r491  
    55
    66#include <c++_tools/classifier/KernelLookup.h>
     7#include <c++_tools/classifier/SupervisedClassifier.h>
    78#include <c++_tools/classifier/Target.h>
    89#include <c++_tools/gslapi/vector.h>
     
    9697  /// taken care of outside (in the kernel).
    9798  ///   
    98   class SVM
     99  class SVM : public SupervisedClassifier
    99100  {
    100101 
Note: See TracChangeset for help on using the changeset viewer.