Ignore:
Timestamp:
Aug 24, 2006, 1:18:28 PM (16 years ago)
Author:
Peter
Message:

added random_shuffle function in Target class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/classifier/Target.h

    r581 r592  
    9292
    9393    ///
     94    /// @brief randomize labels
     95    ///
     96    /// Randomizes classes. Number of samples with a specific label is
     97    /// not modified, neither mapping from label to class.
     98    ///
     99    void random_shuffle(void);
     100
     101    ///
    94102    /// @return number of samples
    95103    ///
     
    124132    std::vector<char> binary_; // avoid using vector<bool>
    125133    std::vector<size_t> classes_; // class of sample i
    126     // map between class label and class index
     134    // map between class label and class index (inverse of labels_)
    127135    std::map<std::string,size_t> class_map_; 
    128136    std::vector<std::string> labels_; // label of class i
Note: See TracChangeset for help on using the changeset viewer.