Changeset 781 for trunk/test


Ignore:
Timestamp:
Mar 5, 2007, 8:44:03 PM (15 years ago)
Author:
Peter
Message:

changing name to ROCScore and also added some cassert includes

Location:
trunk/test
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/consensus_inputranker_test.cc

    r779 r781  
    2323
    2424#include "yat/classifier/ConsensusInputRanker.h"
    25 #include "yat/statistics/ROCscore.h"
     25#include "yat/statistics/ROCScore.h"
    2626#include "yat/utility/matrix.h"
    2727#include "yat/classifier/MatrixLookup.h"
     
    5959
    6060 
    61   theplu::yat::statistics::ROCscore roc;
     61  theplu::yat::statistics::ROCScore roc;
    6262  theplu::yat::classifier::CrossValidationSampler sampler(target,30,3);
    6363  *error << "Building Consensus_Inputranker" << std::endl;
  • trunk/test/crossvalidation_test.cc

    r704 r781  
    2828#include "yat/utility/matrix.h"
    2929
     30#include <cassert>
    3031#include <cstdlib>
    3132#include <fstream>
  • trunk/test/feature_selection_test.cc

    r779 r781  
    2424#include "yat/classifier/FeatureSelectorIR.h"
    2525#include "yat/classifier/FeatureSelectorRandom.h"
    26 #include "yat/statistics/ROCscore.h"
     26#include "yat/statistics/ROCScore.h"
    2727
    2828#include <fstream>
     
    4545  bool ok = true;
    4646
    47   statistics::ROCscore roc;
     47  statistics::ROCScore roc;
    4848  classifier::FeatureSelectorIR f(roc, 12);
    4949  classifier::FeatureSelectorRandom f2(12);
  • trunk/test/inputranker_test.cc

    r779 r781  
    2323
    2424#include "yat/classifier/InputRanker.h"
    25 #include "yat/statistics/ROCscore.h"
     25#include "yat/statistics/ROCScore.h"
    2626#include "yat/utility/matrix.h"
    2727#include "yat/classifier/MatrixLookup.h"
     
    5757  is.close();
    5858
    59   statistics::ROCscore roc;
     59  statistics::ROCScore roc;
    6060  classifier::InputRanker ir(data,target,roc);
    6161  if (ir.id()[0]!=2 || ir.id()[1]!=0 || ir.id()[2]!=1){
  • trunk/test/kernel_test.cc

    r680 r781  
    3030#include "yat/classifier/Kernel_SEV.h"
    3131
     32#include <cassert>
    3233#include <cmath>
    3334#include <cstdlib>
  • trunk/test/score_test.cc

    r779 r781  
    2525#include "yat/statistics/FoldChange.h"
    2626#include "yat/statistics/Pearson.h"
    27 #include "yat/statistics/ROCscore.h"
     27#include "yat/statistics/ROCScore.h"
    2828#include "yat/statistics/SAMScore.h"
    2929#include "yat/statistics/tScore.h"
     
    5252  bool ok = true;
    5353
    54   *error << "testing ROCscore" << std::endl;
     54  *error << "testing ROCScore" << std::endl;
    5555  utility::vector value(31);
    5656  std::vector<std::string> label(31,"negative");
     
    6060  for (size_t i=0; i<value.size(); i++)
    6161    value(i)=i;
    62   statistics::ROCscore roc;
     62  statistics::ROCScore roc;
    6363  double area = roc.score(target, value);
    6464  if (area!=1.0){
  • trunk/test/subset_generator_test.cc

    r779 r781  
    3232#include "yat/classifier/SVM.h"
    3333#include "yat/classifier/NCC.h"
    34 #include "yat/statistics/ROCscore.h"
     34#include "yat/statistics/ROCScore.h"
    3535#include "yat/statistics/PearsonDistance.h"
    3636#include "yat/utility/matrix.h"
    3737
     38#include <cassert>
    3839#include <fstream>
    3940#include <iostream>
     
    7879  classifier::CrossValidationSampler sampler(target, 30, 3);
    7980
    80   statistics::ROCscore score;
     81  statistics::ROCScore score;
    8182  classifier::FeatureSelectorIR fs(score, 96, 0);
    8283  *error << "building SubsetGenerator" << std::endl;
     
    9596  utility::vector out(target.size(),0);
    9697  for (size_t i = 0; i<out.size(); ++i)
    97     out(i)=ensemble_svm.validate()[0][i].mean();
    98   statistics::ROCscore roc;
     98    out(i)=ensemble_svm.validate()[0][i].mean(); 
     99  statistics::ROCScore roc;
    99100  *error << roc.score(target,out) << std::endl;
    100101
Note: See TracChangeset for help on using the changeset viewer.