Ignore:
Timestamp:
Apr 10, 2008, 9:59:23 AM (14 years ago)
Author:
Jari Häkkinen
Message:

Some more uint, u_int, and u_long fixes.

File:
1 edited

Legend:

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

    r1227 r1273  
    8989    /// is issued size is zero.
    9090    ///
    91     u_long size(void) const;
     91    unsigned long size(void) const;
    9292
    9393    ///
     
    160160  {
    161161    if (classifier_.empty()){
    162       for(u_long i=0; i<subset_->size();++i) {
     162      for(unsigned long i=0; i<subset_->size();++i) {
    163163        C* classifier = mother_.make_classifier();
    164164        classifier->train(subset_->training_data(i),
     
    187187    utility::Matrix prediction; 
    188188
    189     for(u_long k=0;k<size();++k) {       
     189    for(unsigned long k=0;k<size();++k) {       
    190190      D sub_data =  test_data(data, k);
    191191      classifier(k).predict(sub_data,prediction);
     
    199199 
    200200  template <class C, class D>
    201   u_long EnsembleBuilder<C, D>::size(void) const
     201  unsigned long EnsembleBuilder<C, D>::size(void) const
    202202  {
    203203    return classifier_.size();
     
    259259
    260260    utility::Matrix prediction; 
    261     for(u_long k=0;k<size();k++) {
     261    for(unsigned long k=0;k<size();k++) {
    262262      classifier(k).predict(subset_->validation_data(k),prediction);
    263263     
Note: See TracChangeset for help on using the changeset viewer.