Changeset 445 for trunk/lib/svm/SVM.cc


Ignore:
Timestamp:
Dec 15, 2005, 5:52:58 PM (17 years ago)
Author:
Peter
Message:

added reset function and copy constructor to SVM

File:
1 edited

Legend:

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

    r377 r445  
    138138
    139139  SVM::SVM(const Kernel& kernel, const gslapi::vector& target)
    140            
    141140  : alpha_(target.size(),0),
    142141    bias_(0),
     
    149148    trained_(false),
    150149    tolerance_(0.00000001)
    151        
    152150  {
    153151    if (max_epochs_>ULONG_MAX)
     
    155153  }
    156154
     155  SVM::SVM(const SVM& other)
     156  : alpha_(other.alpha_),
     157    bias_(other.bias_),
     158    C_inverse_(other.C_inverse_),
     159    kernel_(other.kernel_),
     160    max_epochs_(other.max_epochs_),
     161    output_(other.output_),
     162    sample_(other.sample_),
     163    target_(other.target_),
     164    trained_(other.trained_),
     165    tolerance_(other.tolerance_)
     166  {
     167  }
    157168
    158169  bool SVM::train(void)
Note: See TracChangeset for help on using the changeset viewer.