Changeset 571


Ignore:
Timestamp:
Apr 6, 2006, 3:08:17 PM (15 years ago)
Author:
Peter
Message:

added function to set C-Parameter in SVM

Location:
trunk/lib/classifier
Files:
2 edited

Legend:

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

    r569 r571  
    126126
    127127    //Copy those variables possible to modify from outside
     128    // Peter, in particular C
    128129    return sc;
    129130  }
     
    399400  }
    400401
     402  void SVM::set_C(const double C)
     403  {
     404    C_inverse_ = 1/C;
     405  }
     406
    401407  Index::Index(void)
    402408    : nof_sv_(0), vec_(std::vector<size_t>(0))
  • trunk/lib/classifier/SVM.h

    r569 r571  
    207207
    208208    ///
     209    /// @brief sets the C-Parameter
     210    ///
     211    void set_C(const double);
     212
     213    ///
    209214    /// Training the SVM following Platt's SMO, with Keerti's
    210215    /// modifacation. Minimizing \f$ \frac{1}{2}\sum
Note: See TracChangeset for help on using the changeset viewer.