Ignore:
Timestamp:
Feb 23, 2008, 11:52:43 PM (16 years ago)
Author:
Peter
Message:

using Index class instead of std::vector<size_t>

File:
1 edited

Legend:

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

    r1000 r1134  
    2727
    2828#include "Target.h"
     29#include "yat/utility/Index.h"
    2930
    3031#include <vector>
     
    6970    /// @return training indices
    7071    ///
    71     const std::vector<size_t>&
     72    const utility::Index&
    7273    training_index(std::vector<size_t>::size_type i) const;
    7374
     
    8586    /// @note if state is invalid the result is undefined
    8687    ///
    87     const std::vector<size_t>&
     88    const utility::Index&
    8889    validation_index(std::vector<size_t>::size_type i) const;
    8990
     
    99100    Target target_;
    100101    /// index of training sets for the partitions
    101     std::vector<std::vector<size_t> > training_index_;
     102    std::vector<utility::Index> training_index_;
    102103    /// Targets for training sets for the partitions
    103104    std::vector<Target> training_target_;
    104105    /// index of validation sets for the partitions
    105     std::vector<std::vector<size_t> > validation_index_;
     106    std::vector<utility::Index> validation_index_;
    106107    /// Targets for validation sets for the partitions
    107108    std::vector<Target> validation_target_;
Note: See TracChangeset for help on using the changeset viewer.