- Timestamp:
- Oct 6, 2006, 6:07:54 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/c++_tools/classifier/ConsensusInputRanker.cc
r616 r666 21 21 namespace classifier { 22 22 23 ConsensusInputRanker::ConsensusInputRanker(const IRRetrieve& retriever) 24 : retriever_(retriever) 25 { 26 } 27 28 23 29 ConsensusInputRanker::ConsensusInputRanker(const Sampler& sampler, 24 30 const MatrixLookup& data, 25 statistics::Score& score) 31 statistics::Score& score, 32 const IRRetrieve& retriever) 33 : retriever_(retriever) 26 34 { 27 35 assert(sampler.size()); … … 38 46 ConsensusInputRanker::ConsensusInputRanker(const Sampler& sampler, 39 47 const MatrixLookupWeighted& data, 40 statistics::Score& score) 48 statistics::Score& score, 49 const IRRetrieve& retriever) 50 : retriever_(retriever) 41 51 { 42 52 assert(sampler.size()); -
trunk/c++_tools/classifier/ConsensusInputRanker.h
r615 r666 5 5 6 6 #include <c++_tools/classifier/InputRanker.h> 7 #include <c++_tools/classifier/IRRetrieve.h> 7 8 8 9 namespace theplu { … … 48 49 /// Truly does nothing but creates a few empty member vectors. 49 50 /// 50 //ConsensusInputRanker(void);51 ConsensusInputRanker(const IRRetrieve&); 51 52 52 53 /// … … 57 58 /// 58 59 ConsensusInputRanker(const Sampler& sampler, const MatrixLookup&, 59 statistics::Score& s );60 statistics::Score& s, const IRRetrieve&); 60 61 61 62 /// … … 67 68 ConsensusInputRanker(const Sampler& sampler, 68 69 const MatrixLookupWeighted& data, 69 statistics::Score& score );70 statistics::Score& score, const IRRetrieve&); 70 71 71 72 /// … … 102 103 std::vector<InputRanker> input_rankers_; 103 104 std::vector<size_t> rank_; 105 const IRRetrieve& retriever_; 104 106 105 107 }; -
trunk/c++_tools/classifier/Makefile.am
r662 r666 37 37 IGP.cc \ 38 38 InputRanker.cc \ 39 IRFunctor.h \ 40 IRRank.h \ 41 IRScore.h \ 39 42 Kernel.cc \ 40 43 Kernel_MEV.cc \ -
trunk/test/consensus_inputranker_test.cc
r616 r666 8 8 #include <c++_tools/classifier/MatrixLookup.h> 9 9 #include <c++_tools/classifier/CrossValidationSampler.h> 10 #include <c++_tools/classifier/IRRank.h> 10 11 11 12 #include <cstdlib> … … 43 44 theplu::classifier::CrossValidationSampler sampler(target,30,3); 44 45 *error << "Building Consensus_Inputranker" << std::endl; 45 theplu::classifier::ConsensusInputRanker cir(sampler,data,roc); 46 theplu::classifier::IRRank retrieve; 47 theplu::classifier::ConsensusInputRanker cir(sampler,data,roc,retrieve); 46 48 *error << "Done" << std::endl; 47 49 … … 58 60 theplu::utility::matrix flag(data.rows(),data.columns(),1); 59 61 // Peter, fix weighted version instead 60 theplu::classifier::ConsensusInputRanker cir2(sampler,data,roc );62 theplu::classifier::ConsensusInputRanker cir2(sampler,data,roc,retrieve); 61 63 62 64 if (cir2.id(0)!=2 || cir2.id(1)!=0 || cir2.id(2)!=1){
Note: See TracChangeset
for help on using the changeset viewer.