Changeset 1161


Ignore:
Timestamp:
Feb 26, 2008, 4:47:38 PM (13 years ago)
Author:
Peter
Message:

testing to build ensemble of svm refs #318

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/ensemble_test.cc

    r1157 r1161  
    9292  classifier::KernelLookup kernel_lookup(kernel);
    9393  *error << "create svm" << std::endl;
    94   classifier::SVM svm();
     94  classifier::SVM svm;
    9595  *error << "create Subsets" << std::endl;
    9696  classifier::CrossValidationSampler sampler(target,3,3);
    9797  classifier::SubsetGenerator<classifier::KernelLookup> cv(sampler,
    9898                                                           kernel_lookup);
    99   /* Peter, temporarily removed because of redesign
     99
    100100  *error << "create ensemble" << std::endl;
    101101  classifier::EnsembleBuilder<classifier::SVM, classifier::KernelLookup>
     
    104104  ensemble.build();
    105105 
    106   utility::vector out(target.size(),0);
     106  utility::Vector out(target.size(),0);
    107107  for (size_t i = 0; i<out.size(); ++i)
    108108    out(i)=ensemble.validate()[0][i].mean();
    109109  statistics::AUC roc;
    110110  *error << roc.score(target,out) << std::endl;
    111   */
     111
    112112  delete kf;
    113113
Note: See TracChangeset for help on using the changeset viewer.