Changeset 301 for trunk/lib/svm
- Timestamp:
- Apr 30, 2005, 3:39:27 PM (17 years ago)
- Location:
- trunk/lib/svm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/svm/ConsensusInputRanker.cc
r298 r301 44 44 //sort medians and assign id_ and rank_ 45 45 sort(median.begin(), median.end(), 46 cpptools::pair_value_compare<size_t, double>());46 utility::pair_value_compare<size_t, double>()); 47 47 id_.resize(data.rows()); 48 48 rank_.resize(data.rows()); … … 81 81 //sort medians and assign id_ and rank_ 82 82 sort(median.begin(), median.end(), 83 cpptools::pair_value_compare<size_t, double>());83 utility::pair_value_compare<size_t, double>()); 84 84 id_.resize(data.rows()); 85 85 rank_.resize(data.rows()); -
trunk/lib/svm/CrossValidation.cc
r295 r301 24 24 } 25 25 26 cpptools::my_uniform_rng a;26 utility::my_uniform_rng a; 27 27 random_shuffle(index_negative_.begin(), index_negative_.end(), a); 28 28 random_shuffle(index_positive_.begin(), index_positive_.end(), a); … … 33 33 if (count_==k_){ 34 34 count_=0; 35 cpptools::my_uniform_rng a;35 utility::my_uniform_rng a; 36 36 random_shuffle(index_negative_.begin(), index_negative_.end(), a); 37 37 random_shuffle(index_positive_.begin(), index_positive_.end(), a); … … 57 57 } 58 58 59 }} // of namespace cpptoolsand namespace theplu59 }} // of namespace svm and namespace theplu -
trunk/lib/svm/InputRanker.cc
r295 r301 49 49 //sort the scores and assign id_ and rank_ 50 50 sort(score.begin(), score.end(), 51 cpptools::pair_value_compare<size_t, double>());51 utility::pair_value_compare<size_t, double>()); 52 52 53 53 for (size_t i=0; i<nof_genes; i++){ … … 84 84 //sort the scores and assign id_ and rank_ 85 85 sort(score.begin(), score.end(), 86 cpptools::pair_value_compare<size_t, double>());86 utility::pair_value_compare<size_t, double>()); 87 87 88 88 for (size_t i=0; i<nof_genes; i++){ -
trunk/lib/svm/SVM.cc
r295 r301 74 74 for (size_t i=0; i<E.size(); i++) 75 75 tmp[i]=i; 76 cpptools::my_uniform_rng a;76 utility::my_uniform_rng a; 77 77 random_shuffle(tmp.begin(), tmp.end(), a); 78 78 for (size_t i=0; i<tmp.size(); i++){ … … 212 212 213 213 214 }} // of namespace cpptoolsand namespace theplu214 }} // of namespace svm and namespace theplu
Note: See TracChangeset
for help on using the changeset viewer.