Changeset 1161
- Timestamp:
- Feb 26, 2008, 4:47:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/ensemble_test.cc
r1157 r1161 92 92 classifier::KernelLookup kernel_lookup(kernel); 93 93 *error << "create svm" << std::endl; 94 classifier::SVM svm ();94 classifier::SVM svm; 95 95 *error << "create Subsets" << std::endl; 96 96 classifier::CrossValidationSampler sampler(target,3,3); 97 97 classifier::SubsetGenerator<classifier::KernelLookup> cv(sampler, 98 98 kernel_lookup); 99 /* Peter, temporarily removed because of redesign 99 100 100 *error << "create ensemble" << std::endl; 101 101 classifier::EnsembleBuilder<classifier::SVM, classifier::KernelLookup> … … 104 104 ensemble.build(); 105 105 106 utility:: vector out(target.size(),0);106 utility::Vector out(target.size(),0); 107 107 for (size_t i = 0; i<out.size(); ++i) 108 108 out(i)=ensemble.validate()[0][i].mean(); 109 109 statistics::AUC roc; 110 110 *error << roc.score(target,out) << std::endl; 111 */ 111 112 112 delete kf; 113 113
Note: See TracChangeset
for help on using the changeset viewer.