Changeset 1273 for trunk/yat/classifier


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

Some more uint, u_int, and u_long fixes.

Location:
trunk/yat/classifier
Files:
2 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     
  • trunk/yat/classifier/SubsetGenerator.h

    r1222 r1273  
    298298      features_.push_back(utility::Index(ml.rows()));
    299299
    300     for (u_long k=0; k<size(); k++){
     300    for (unsigned long k=0; k<size(); k++){
    301301      training_target_.push_back(Target(target(),training_index(k)));
    302302      validation_target_.push_back(Target(target(),validation_index(k)));
     
    324324  void SubsetGenerator<Data>::build(const KernelLookup& kernel)
    325325  {
    326     for (u_long k=0; k<size(); k++){
     326    for (unsigned long k=0; k<size(); k++){
    327327      training_target_.push_back(Target(target(),training_index(k)));
    328328      validation_target_.push_back(Target(target(),validation_index(k)));
Note: See TracChangeset for help on using the changeset viewer.