Ignore:
Timestamp:
Feb 27, 2008, 5:27:13 PM (14 years ago)
Author:
Peter
Message:

fixed bug in SVM. SVM does not own the Kernel and should therefore never delete it. Cpy and assignment can simply copy the pointer without problem. Yet if the Kernel is deallocated outside, behavior of SVM is undefined.

File:
1 edited

Legend:

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

    r1170 r1175  
    230230    double bias_;
    231231    double C_inverse_;
     232    // not owned by SVM
    232233    const KernelLookup* kernel_;
    233234    double margin_;
Note: See TracChangeset for help on using the changeset viewer.