Changeset 1273 for trunk/yat/classifier
 Timestamp:
 Apr 10, 2008, 9:59:23 AM (13 years ago)
 Location:
 trunk/yat/classifier
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/classifier/EnsembleBuilder.h
r1227 r1273 89 89 /// is issued size is zero. 90 90 /// 91 u _long size(void) const;91 unsigned long size(void) const; 92 92 93 93 /// … … 160 160 { 161 161 if (classifier_.empty()){ 162 for(u _long i=0; i<subset_>size();++i) {162 for(unsigned long i=0; i<subset_>size();++i) { 163 163 C* classifier = mother_.make_classifier(); 164 164 classifier>train(subset_>training_data(i), … … 187 187 utility::Matrix prediction; 188 188 189 for(u _long k=0;k<size();++k) {189 for(unsigned long k=0;k<size();++k) { 190 190 D sub_data = test_data(data, k); 191 191 classifier(k).predict(sub_data,prediction); … … 199 199 200 200 template <class C, class D> 201 u _long EnsembleBuilder<C, D>::size(void) const201 unsigned long EnsembleBuilder<C, D>::size(void) const 202 202 { 203 203 return classifier_.size(); … … 259 259 260 260 utility::Matrix prediction; 261 for(u _long k=0;k<size();k++) {261 for(unsigned long k=0;k<size();k++) { 262 262 classifier(k).predict(subset_>validation_data(k),prediction); 263 263 
trunk/yat/classifier/SubsetGenerator.h
r1222 r1273 298 298 features_.push_back(utility::Index(ml.rows())); 299 299 300 for (u _long k=0; k<size(); k++){300 for (unsigned long k=0; k<size(); k++){ 301 301 training_target_.push_back(Target(target(),training_index(k))); 302 302 validation_target_.push_back(Target(target(),validation_index(k))); … … 324 324 void SubsetGenerator<Data>::build(const KernelLookup& kernel) 325 325 { 326 for (u _long k=0; k<size(); k++){326 for (unsigned long k=0; k<size(); k++){ 327 327 training_target_.push_back(Target(target(),training_index(k))); 328 328 validation_target_.push_back(Target(target(),validation_index(k)));
Note: See TracChangeset
for help on using the changeset viewer.