Changeset 963 for trunk/yat/classifier


Ignore:
Timestamp:
Oct 10, 2007, 11:04:52 PM (16 years ago)
Author:
Peter
Message:

fixes #268. SVM throws if when train() fails

Location:
trunk/yat/classifier
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/NBC.cc

    r961 r963  
    3333#include <cassert>
    3434#include <cmath>
     35#include <stdexcept>
    3536#include <vector>
    3637
  • trunk/yat/classifier/SVM.h

    r865 r963  
    100100
    101101    ///
    102     /// Default is max_epochs set to 10,000,000.
     102    /// Default is max_epochs set to 100,000.
    103103    ///
    104104    /// @return number of maximal epochs
     
    161161       @note If the training problem is not linearly separable and C
    162162       is set to infinity, the minima will be located in the infinity,
    163        and thus the minumum will not be reached within the maximal
     163       and thus the minimum will not be reached within the maximal
    164164       number of epochs. More exactly, when the problem is not
    165165       linearly separable, there exists an eigenvector to \f$
     
    178178       maximal number of epochs and the of \f$ C \f$ should be
    179179       decreased.
     180
     181       \throw if maximal number of epoch is reach.
    180182 
    181183       @return true if succesful
Note: See TracChangeset for help on using the changeset viewer.