- Timestamp:
- Mar 5, 2007, 8:44:03 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 18 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/consensus_inputranker_test.cc
r779 r781 23 23 24 24 #include "yat/classifier/ConsensusInputRanker.h" 25 #include "yat/statistics/ROC score.h"25 #include "yat/statistics/ROCScore.h" 26 26 #include "yat/utility/matrix.h" 27 27 #include "yat/classifier/MatrixLookup.h" … … 59 59 60 60 61 theplu::yat::statistics::ROC score roc;61 theplu::yat::statistics::ROCScore roc; 62 62 theplu::yat::classifier::CrossValidationSampler sampler(target,30,3); 63 63 *error << "Building Consensus_Inputranker" << std::endl; -
trunk/test/crossvalidation_test.cc
r704 r781 28 28 #include "yat/utility/matrix.h" 29 29 30 #include <cassert> 30 31 #include <cstdlib> 31 32 #include <fstream> -
trunk/test/feature_selection_test.cc
r779 r781 24 24 #include "yat/classifier/FeatureSelectorIR.h" 25 25 #include "yat/classifier/FeatureSelectorRandom.h" 26 #include "yat/statistics/ROC score.h"26 #include "yat/statistics/ROCScore.h" 27 27 28 28 #include <fstream> … … 45 45 bool ok = true; 46 46 47 statistics::ROC score roc;47 statistics::ROCScore roc; 48 48 classifier::FeatureSelectorIR f(roc, 12); 49 49 classifier::FeatureSelectorRandom f2(12); -
trunk/test/inputranker_test.cc
r779 r781 23 23 24 24 #include "yat/classifier/InputRanker.h" 25 #include "yat/statistics/ROC score.h"25 #include "yat/statistics/ROCScore.h" 26 26 #include "yat/utility/matrix.h" 27 27 #include "yat/classifier/MatrixLookup.h" … … 57 57 is.close(); 58 58 59 statistics::ROC score roc;59 statistics::ROCScore roc; 60 60 classifier::InputRanker ir(data,target,roc); 61 61 if (ir.id()[0]!=2 || ir.id()[1]!=0 || ir.id()[2]!=1){ -
trunk/test/kernel_test.cc
r680 r781 30 30 #include "yat/classifier/Kernel_SEV.h" 31 31 32 #include <cassert> 32 33 #include <cmath> 33 34 #include <cstdlib> -
trunk/test/score_test.cc
r779 r781 25 25 #include "yat/statistics/FoldChange.h" 26 26 #include "yat/statistics/Pearson.h" 27 #include "yat/statistics/ROC score.h"27 #include "yat/statistics/ROCScore.h" 28 28 #include "yat/statistics/SAMScore.h" 29 29 #include "yat/statistics/tScore.h" … … 52 52 bool ok = true; 53 53 54 *error << "testing ROC score" << std::endl;54 *error << "testing ROCScore" << std::endl; 55 55 utility::vector value(31); 56 56 std::vector<std::string> label(31,"negative"); … … 60 60 for (size_t i=0; i<value.size(); i++) 61 61 value(i)=i; 62 statistics::ROC score roc;62 statistics::ROCScore roc; 63 63 double area = roc.score(target, value); 64 64 if (area!=1.0){ -
trunk/test/subset_generator_test.cc
r779 r781 32 32 #include "yat/classifier/SVM.h" 33 33 #include "yat/classifier/NCC.h" 34 #include "yat/statistics/ROC score.h"34 #include "yat/statistics/ROCScore.h" 35 35 #include "yat/statistics/PearsonDistance.h" 36 36 #include "yat/utility/matrix.h" 37 37 38 #include <cassert> 38 39 #include <fstream> 39 40 #include <iostream> … … 78 79 classifier::CrossValidationSampler sampler(target, 30, 3); 79 80 80 statistics::ROC score score;81 statistics::ROCScore score; 81 82 classifier::FeatureSelectorIR fs(score, 96, 0); 82 83 *error << "building SubsetGenerator" << std::endl; … … 95 96 utility::vector out(target.size(),0); 96 97 for (size_t i = 0; i<out.size(); ++i) 97 out(i)=ensemble_svm.validate()[0][i].mean(); 98 statistics::ROC score roc;98 out(i)=ensemble_svm.validate()[0][i].mean(); 99 statistics::ROCScore roc; 99 100 *error << roc.score(target,out) << std::endl; 100 101 -
trunk/yat/classifier/FeatureSelectorIR.cc
r747 r781 29 29 30 30 #include <algorithm> 31 #include <cassert> 31 32 32 33 namespace theplu { -
trunk/yat/classifier/FeatureSelectorRandom.cc
r680 r781 29 29 30 30 #include <algorithm> 31 #include <cassert> 31 32 32 33 namespace theplu { -
trunk/yat/classifier/GaussianKernelFunction.cc
r680 r781 27 27 #include "DataLookupWeighted1D.h" 28 28 29 #include <cassert> 29 30 #include <math.h> 30 31 -
trunk/yat/classifier/InputRanker.cc
r779 r781 31 31 #include "yat/utility/stl_utility.h" 32 32 33 #include <cassert> 33 34 #include <cmath> 34 35 #include <functional> -
trunk/yat/classifier/MatrixLookup.cc
r720 r781 29 29 #endif 30 30 31 #include <cassert> 31 32 #include <fstream> 32 33 -
trunk/yat/classifier/MatrixLookupWeighted.cc
r774 r781 29 29 #endif 30 30 31 #include <cassert> 31 32 #include <fstream> 32 33 -
trunk/yat/classifier/PolynomialKernelFunction.cc
r680 r781 27 27 #include "yat/statistics/AveragerPairWeighted.h" 28 28 29 #include <cassert> 29 30 #include <cmath> 30 31 -
trunk/yat/statistics/AveragerPairWeighted.cc
r772 r781 27 27 #include "yat/classifier/DataLookup1D.h" 28 28 #include "yat/classifier/DataLookupWeighted1D.h" 29 30 #include <cassert> 29 31 30 32 namespace theplu { -
trunk/yat/statistics/Makefile.am
r779 r781 27 27 AveragerWeighted.cc AveragerPairWeighted.cc Distance.cc \ 28 28 Euclidean.cc Fisher.cc FoldChange.cc Histogram.cc Pearson.cc \ 29 PearsonCorrelation.cc PearsonDistance.cc ROC.cc ROC score.cc \29 PearsonCorrelation.cc PearsonDistance.cc ROC.cc ROCScore.cc \ 30 30 SAMScore.cc Score.cc SNR.cc tScore.cc tTest.cc \ 31 31 utility.cc WilcoxonFoldChange.cc … … 37 37 Fisher.h \ 38 38 FoldChange.h Histogram.h Pearson.h PearsonCorrelation.h \ 39 PearsonDistance.h ROC.h ROC score.h \39 PearsonDistance.h ROC.h ROCScore.h \ 40 40 SAMScore.h Score.h SNR.h tScore.h tTest.h \ 41 41 utility.h WilcoxonFoldChange.h -
trunk/yat/statistics/ROC.cc
r779 r781 30 30 #include <gsl/gsl_cdf.h> 31 31 32 #include <cassert> 32 33 #include <cmath> 33 34 #include <utility> -
trunk/yat/statistics/ROCScore.cc
r779 r781 22 22 */ 23 23 24 #include "ROC score.h"24 #include "ROCScore.h" 25 25 #include "yat/classifier/DataLookupWeighted1D.h" 26 26 #include "yat/classifier/Target.h" … … 37 37 namespace statistics { 38 38 39 ROC score::ROCscore(bool absolute)39 ROCScore::ROCScore(bool absolute) 40 40 : Score(absolute) 41 41 { 42 42 } 43 43 44 double ROC score::score(const classifier::Target& target,44 double ROCScore::score(const classifier::Target& target, 45 45 const utility::vector& value) const 46 46 { … … 57 57 58 58 59 double ROC score::score(const classifier::Target& target,59 double ROCScore::score(const classifier::Target& target, 60 60 const classifier::DataLookupWeighted1D& value) const 61 61 { … … 73 73 74 74 75 double ROC score::score(const classifier::Target& target,75 double ROCScore::score(const classifier::Target& target, 76 76 const utility::vector& value, 77 77 const utility::vector& weight) const … … 91 91 92 92 double 93 ROC score::score(const MultiMap& m) const93 ROCScore::score(const MultiMap& m) const 94 94 { 95 95 double area=0; -
trunk/yat/statistics/ROCScore.h
r779 r781 44 44 /// @brief Class for Reciever Operating Characteristic. 45 45 /// 46 class ROC score : public Score46 class ROCScore : public Score 47 47 { 48 48 … … 51 51 /// 52 52 /// 53 ROC score(bool absolute=true);53 ROCScore(bool absolute=true); 54 54 55 55 /// Function taking \a value, \a target (+1 or -1) and vector -
trunk/yat/statistics/SNR.cc
r779 r781 28 28 #include "yat/classifier/Target.h" 29 29 #include "yat/utility/vector.h" 30 31 #include <cassert> 30 32 31 33 namespace theplu {
Note: See TracChangeset
for help on using the changeset viewer.