Ignore:
Timestamp:
Mar 19, 2007, 12:03:27 PM (15 years ago)
Author:
Peter
Message:

BootstrapSampler?. Fixes #134

File:
1 edited

Legend:

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

    r720 r823  
    2929namespace classifier { 
    3030
    31   Sampler::Sampler(const Target& target)
     31  Sampler::Sampler(const Target& target, size_t N)
    3232    : target_(target)
    3333  {
     34    training_index_.reserve(N);
     35    training_target_.reserve(N);
     36    validation_index_.reserve(N);
     37    validation_target_.reserve(N);
    3438  }
    3539
Note: See TracChangeset for help on using the changeset viewer.