Ignore:
Timestamp:
Oct 9, 2007, 1:09:58 AM (14 years ago)
Author:
Peter
Message:

SVM::make_classifier is now throwing if KernelLookup? is not passed.

File:
1 edited

Legend:

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

    r948 r950  
    7373    }
    7474    catch (std::bad_cast) {
    75       std::string str = "Error in NBC::make_classifier: DataLookup2D of unexpected class.";
     75      std::string str =
     76        "Error in NBC::make_classifier: DataLookup2D of unexpected class.";
    7677      throw std::runtime_error(str);
    7778    }
     
    121122    const MatrixLookupWeighted* w =
    122123      dynamic_cast<const MatrixLookupWeighted*>(&x);
    123 
     124   
    124125    // each row in prediction corresponds to a sample label (class)
    125126    prediction.resize(centroids_.columns(), x.columns(), 0);
Note: See TracChangeset for help on using the changeset viewer.